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

´Ð³×ÀÓ

Anonymous

À̸ÞÀÏ

Á¦¸ñ

ÂüÁ¶°¡ ¹ºÁö ¿©¼­ ÆÅ ¸·Çû¾î¿ä Á¦¹ß Ç®¾îÁÖ¼¼¿ë ¤Ð.¤Ð;
³»¿ë
#####################################################################
my $ref;

if($GIL{searchmode} eq 'address') {
$ref = zipcode_address($query);
} elsif($GIL{searchmode} eq 'code') {
$ref = zipcode_code($query);
}

for (sort keys %$ref) {
if ($_ == 0) {
print $$ref{$_};
#####################################################################

#####################################################################
sub zipcode_address {
my %ZIPCODE;
my $text = shift;
return {'0', 'ÀԷ°ªÀÌ ¾ø½À´Ï´Ù.'} if $text eq '';

open GIL, "zipcode.db" or return {'0', 'DB ÆÄÀÏÀÌ ¾ø½À´Ï´Ù.'};
while(<GIL>) {
my ($z, $a) = split /\t/;
chomp $a, $ZIPCODE{$z} = $a if $a =~ /\Q$text/;
}
close GIL;

\%ZIPCODE;
}
#####################################################################

À§ ¼Ò½º¿¡¼­ ÀÌÇØ°¡ ¾Ê°¡´Â ºÎºÐÀÌ À־¿ä.

zipcode_addressÇÔ¼ö¿¡ $queryÀÎÀÚ¸¦ º¸³»¼­ °ªÀÌ 0À̸é

¸®ÅÏÀ» 2°³ ÇÏÀݾƿä. '0', 'ÀԷ°ªÀÌ ¾ø½À´Ï´Ù.'

¹è¿­ÀÌ ¾Æ´Ñº¯¼ö$ref °¡ ¹ÞÀ¸´Ï 0¸¸ ¹ÞÀ»¼ö ÀÖÂ¥³ª¿ä?

±×´ÙÀ½ ÀÌ ¹ØºÎºÐ ºÎÅÍ°¡ Á¤¸» ÀÌÇØ°¡ ¾Ê°¡°Åµç¿ä..¼³¸íµµ Ã¥À»³ë ºÒÃæ

ºÐÇؼ­ ¹¹°¡ ¹ºÁö ¸ô¸£°Ú¾î¿ë..

for (sort keys %$ref) {
if ($_ == 0) {
print $$ref{$_};

±×³É º¯¼ö¸¦ ÇؽÃó·³ Å°°ªÀ» Á¤·ÄÇؼ­ »©³»´ÂÁö?

±×¸®°í print $$ref{$_}; ¿©±â¼­ Ãâ·ÂµÉ¶§. DB ÆÄÀÏÀÌ ¾ø½À´Ï´Ù.

¶ó°í Ãâ·ÂµÇ´ÂÁö? Á¤¸» ÀÌÇØ°¡ ¾Ê°¡°Åµç¿ä.. $ref º¯¼ö°¡ ¹ÞÀº°Ç

0Çϳª »ÓÀÏ°Ç´ë.. ÀÚ¼¼È÷Á» ¼³¸íÁ»ÇØÁÖ¼¼¿ä Á¦¹ß ºÎŹµå·Á¿ë..
Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
ÀÌÀü°Ô½Ã±Û ±Û¾¾Ã¼¸¦ ÅëÀÏÇÏ·Á¸é.... 2001-10-19 10:55:38
´ÙÀ½°Ô½Ã±Û Sweet Home ¼³Ä¡ ¹æ¹ý Á» ¾Ë·ÁÁÖ¼¼¿ä. 2001-10-22 11:37:38