2008å¹´06æ30æ¥04:00 ã«ãã´ãªLightweight LanguagesTips perl - use Carp; # warn() 㨠die() ã ããããªã㦠以ä¸ã®ã¨ã©ã¼å¦çã®æ¹æ³ã«ã¡ãã£ã¨å£ãæã¿ãããªã£ãã®ã§ã ã¨ã©ã¼å¦çãè¡ãã - ãµã³ãã«ã³ã¼ãã«ãã Perl å ¥é warn() vs. die() ã¾ããwarn()ã®ä½¿ãæ¹ãã¨ã©ã¼ã«å¯¾ãã¦ä½¿ã£ã¦ã¯ããã¾ãããwarnã¯ãã®åã®éããããã¾ã§ãã¨ã©ã¼ã§ã¯ãªãè¦åã§ããã¨ã©ã¼ã®éã«ã¯die()ã使ããªããã°ãªãã¾ããã è¦åã¨ã¨ã©ã¼ã®éãã§ãããè¦åã¯ãç¶ãã¦å¦çãã¦ããããã©ãããã¯ããªãã®æå³ã§ã¯ãªãããããã¾ãããã¨ããå ´åãã¨ã©ã¼ã¯ããã®ã¾ã¾ã§ã¯å¦çãç¶ãããã¾ãããã¨ããå ´åã§ãã ãã¨ãã°perlã®å ´åãæããå¼æ°ã¯undefãªã®ã§ãæ°å¤ã¨ãã¦ã¯0ãæååã¨ãã¦ã¯''ã¨ãã¦è§£éããã¾ãããããããã
{{#tags}}- {{label}}
{{/tags}}