½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
javascript
PHP
ASP
CSS
mysql
HTML
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 18 | Á¶È¸¼ö 488 | µî·ÏÀÏ 2000-12-16 11:21:17

´Ð³×ÀÓ

Anonymous

À̸ÞÀÏ

Á¦¸ñ

[´äº¯] [Áú¹®] Çѱ۹®Àå ÀÏÁ¤±æÀÌ·Î »Ì¾Æ³¾¶§ ¹®Á¦...
³»¿ë
´äº¯°¨»çÇÕ´Ï´Ù. ´äº¯ÇØÁֽŠ³»¿ëÀ» ¾Æ·¡ ó·³ »ðÀÔÀ» Çߴµ¥¿ä
¹» Àß ¸øÇÑ°ÇÁö ¾Æ·¡ÀÇ $cut_length°ªÀ» Ȧ¼ö·Î ÇßÀ»¶§
Ãâ·Â±ÛÀÚÀÇ ³¡ÀÌ Á¤»óÀûÀ¸·Î ³ª¿ÀÁö ¾Ê½À´Ï´Ù.
Á˼ÛÇÕ´Ï´Ù. Á¶¾ðÀ» ºÎŹµå¸³´Ï´Ù. °¨»çÇÕ´Ï´Ù.

#!/usr/bin/perl

$org = "¿ì¸®³ª¶ó¸¸¼¼";
$cut_length = 9;

($out,$result) = hangul_cut($org,$cut_length);

print "($out)
";

#------------------------------------------------------------------------
sub hangul_cut {

local ($data, $len) = @_;
local $check;
if (length $data > $len) {
$data = substr $data, 0, $len;
chop $data if ($data =~ y/[xA1-xFE]//) %2 != 0;
$check = 1;
}
return $data, $check;
}
#------------------------------------------------------------------------

Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
ÀÌÀü°Ô½Ã±Û Áö±Ý±îÁö Á¦°¡ ¿Ã¸°±ÛµéÁß Áö¿ö¾ß µÇ´Â °ÍÀÌ ÀÖ´Ù¸é Áö¿öÁÖ¼¼¿ä 2000-12-16 01:57:03
´ÙÀ½°Ô½Ã±Û ÆÞ°æ·Î.. 2000-12-16 17:22:12