wilbur has asked for the wisdom of the Perl Monks concerning the following question:
CODE: use Data::Dumper; open(FILE, @ARGV[0]) || die "can't open output file"; @test = ('a', qr/b/, 'c', 'd'); while ( <FILE> ) { $hold[$i] = $_; chomp $hold[$i]; $i++; } print Dumper \@hold , \@test; OUTPUT: $VAR1 = [ 'a', 'qr/b/', 'c', 'd', 'e', '' ]; $VAR2 = [ 'a', qr/(?-xism:b)/, 'c', 'd' ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading from file
by gaal (Parson) on Jan 06, 2005 at 21:03 UTC | |
|
Re: Reading from file
by osunderdog (Deacon) on Jan 06, 2005 at 21:01 UTC | |
|
Re: Reading from file
by VSarkiss (Monsignor) on Jan 06, 2005 at 21:30 UTC | |
by gaal (Parson) on Jan 06, 2005 at 23:44 UTC | |
|
Re: Reading from file
by Thilosophy (Curate) on Jan 07, 2005 at 05:40 UTC |