www.ugnews.info

August 14, 2009

銉12鏅傘伀璧枫亶銇熴傘偗銈偗銆


銉绘樇椋熴伅銇恒儦銉兂銉併兗銉庛


Perl銈掋倓銈嬪墠銇Perl銉栥儹銈般倰銇傘倢銇撱倢鏇搞亸銆傘亾銈屻亴鎰忓銇媺寮枫伀銇倠銆傘仧銇犮偝銉笺儔銈掑嫉銇c仸銇勩亸銈撱仒銈冦仾銇忋仸銆併仾銈撱仹銇撱亞銇仯銇熴仩銇ㄣ亱銆併亾銇嗐亜銇嗐亾銇ㄣ倰銇撱亞鍛笺伓銇裤仧銇勩仾銇撱仺銈掋亗銈屻亾銈屻仺鑷垎銇█钁夈仹鏇搞亜銇︺倠銇嬨倝銇戙仯銇撱亞瑕氥亪銈嬨傘亗銇ㄣTwitter銇с倐鑹层呫仺鏁欍亪銇︺倐銈夈仯銇熴倞銇椼仸鍕夊挤銇仾銈嬧︺


livedoor Blog銇仸銇娉銇屼娇銇堛倠銇ㄣ亜銇嗐亾銇ㄣ倰otsune銇曘倱銇暀銇堛仸銈傘倝銇嗭紒銇с併偝銉笺儔寮点倠銇伅銈傘仯銇︺亾銇勩伄銈广兗銉戙兗PRE瑷樻硶銇с偝銉笺儔鍥层仯銇︺儣銉儞銉ャ兗銇椼仸銇裤倠銇ㄣ併仾銇溿亱銇嗐伨銇忚〃绀恒仌銈屻仾銇勩傝ō瀹氥仹Wiki銉€兗銉夈伀銇椼仸銆佸啀銉椼儸銉撱儱銉笺仐銇︺伩銈嬨倐銆併仼銇嗐倐銇嗐伨銇忋亜銇嬨仾銇勩傘仐銇般倝銇忚冦亪銇︺儚銉冦仺鎬濄亜銇ゃ亜銇﹁ō瀹氬紕銇c仧銈夈仐銇c亱銈婇仼鐢ㄣ仌銈屻仧銆傚師鍥犮伅閬搞倱銇犮儢銉偘銇儐銉炽儣銉亴瀵惧繙銇椼仸銇亜銈撱亱浣曘仩銇嬬煡銈夈仾銇勩亴銆併仺銇亱銇忎粬銇儐銉炽儣銉兗銉堛伀銇椼仧銈夈儛銉冦儊銉仩銇c仧銆


銉汇仭銇伩銇銇仸銇銇犮仺銈枫兂銈裤儍銈偣銉忋偆銉┿偆銉堛仺銇嬨亜銇嗐伄銇屻亗銇c仸銆併亾銇嗐倓銇c仸銈炽兗銉夈倰鑹插垎銇戙仐銇︺亸銈屻倠銆傘仚銇斻亜銇

my $value = 255;
my $str = sprintf('%X' , $value);
print $str;

print "銇嗐倱銇\n\n";

foreach my $value (0..255) {
	my $str = sprintf('%X' , $value);
	print $value, ' -> ' , $str, "\n";
}


銇撱倱銇劅銇樸伀銆傘儠銉犮儠銉犮


銉婚爲寮点仯銇熴倝鐤层倢銇熴伄銇у瘽銇俱仐銇熴


銉昏捣銇嶃仸NotEqual銇曘倱銇↖M銇с亗銈屻亾銈屾墦銇″悎銈忋仜銆銉栥儸銉笺兂銈广儓銉笺儫銉炽偘鍋夊ぇ銇犮