- or download this
my @array = do { local @ARGV = $name; <> }; - or download this
#!/usr/bin/perl -w
use strict;
...
print "Lines:\n",@lines;
print "\nFoos:\n",$foo1,$foo2,$foo3;
- or download this
#!/usr/bin/perl -w
use strict;
...
print "Lines:\n",@lines;
print "\nFoos:\n",$foo1,$foo2,$foo3;
- or download this
% perl test.pl file_a
Lines:
...
File A line 1
File A line 2
File A line 3
- or download this
% perl test.pl file_a
Lines:
...
File A line 1
File A line 2
Use of uninitialized value at test.pl line 16.