2012-01-19から1日間の記事一覧

doとrequireの違いがわからなくなったので調べてみた

まずはperldocを読むべし。 do EXPR Uses the value of EXPR as a filename and executes the contents of the file as a Perl script require EXPR demands some semantics specified by EXPR これだけだとよくわかんないので、 warn 'loaded'; { foo => 1}…