in reply to Re: Re: reading data ...
in thread reading data ...
I was trying to explain the obfuscated statement made by jdporter, but it was too involved.my @data = (); while (<DATA>) { # read one line chomp; # remove end-of-line character(s) s/\"//g; # remove double quotes if present push @data, [ $_ ]; # Create an anonymous array # *reference* with the current # line, and push that reference # onto the @data array. }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: reading data ...
by jdporter (Paladin) on Dec 18, 2002 at 16:14 UTC | |
by hmerrill (Friar) on Dec 18, 2002 at 16:40 UTC |