Perl ã®ç¹æ®å¤æ°ã®ãã¡ã¨ãã©ã使ããã® 2006-05-27-2 [Programming] Perl ã®ç¹æ®å¤æ°ã®ãã¡èªåã使ã£ã¦ãããã®ã ãã¡ã¢ã $0 ã¹ã¯ãªããã®ãã¡ã¤ã«å $$ ããã»ã¹çªå·ãsee "perldoc -f srand" $^T ã¹ã¯ãªããã®å®è¡éå§æé $. èªã¿è¾¼ã¿ä¸ã®è¡çªå·(ã¬ã³ã¼ãçªå·)ãä¾: while(<>){print $.} $/ å ¥åã¬ã³ã¼ãã®ã»ãã¬ã¼ã¿ãä¾: undef $/; $a = <>; $| ãããã¡ãªã³ã°ã®å¶å¾¡ã$|=1 ã§ãããã¡ãªã³ã°ãªãã $! ã·ã¹ãã ã³ã¼ã«ã®ã¨ã©ã¼ãä¾: chdir("aaa");print $! if $!; $@ evalã§ã®ã¨ã©ã¼ãä¾: eval '$a=f(1)';print $@ if $@; $, åºåãã£ã¼ã«ãã®åºåããä¾ï¼ $,='/';@a=(1,2,3);print@a; 追è¨0
{{#tags}}- {{label}}
{{/tags}}