in reply to Reading anonymous array from file

Hi,

have a look at perldoc do.

my $ref = do 'data.txt'; my @array = @$ref;

McA

Replies are listed 'Best First'.
Re^2: Reading anonymous array from file
by sherab (Scribe) on Mar 10, 2014 at 18:07 UTC
    Thank you so much. Man, I know that this was so simple and I really appreciate the perldoc reference. :-)