2010-08-31から1日間の記事一覧
#!/usr/bin/perl use strict; use warnings; open( my $fh, 'hoge' ) or die 'ERROR:open:$!'; my $a = <$fh>; print "$a\n"; このコードは、ファイルhogeが空っぽのときに7行目でwarningが出る。 Use of uninitialized value in concatenation (.) or strin…
#!/usr/bin/perl use strict; use warnings; open( my $fh, 'hoge' ) or die 'ERROR:open:$!'; my $a = <$fh>; print "$a\n"; このコードは、ファイルhogeが空っぽのときに7行目でwarningが出る。 Use of uninitialized value in concatenation (.) or strin…