in reply to Reading anonymous array from file
Hi,
have a look at perldoc do.
my $ref = do 'data.txt'; my @array = @$ref; [download]
McA