One way is to use Tie::File.
test.pl: use Tie::File; use Data::Dumper; my $self = tie @array, "Tie::File", "test.pl"; print Dumper(\@array);
In reply to Re: Making an array out of each line in a file
by pg
in thread Making an array out of each line in a file
by exfacior
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |