Re:File & Array

2001-09-13 Thread Robert Citek
Hello Curtis, At 09:12 AM 9/13/2001 -0700, Curtis Poe wrote: >I would try to avoid using DATA as the filehandle as this >may cause confusion with the __DATA__ token. Excellent stylistic point. >Also, if you're going to read the entire file into an array, this >is faster and (IMHO) easier t

Re:File & Array

2001-09-13 Thread Curtis Poe
--- Robert Citek <[EMAIL PROTECTED]> wrote: > At 05:27 PM 9/13/2001 +0200, Jorge Goncalvez wrote: > >Hi, How in Perl you can store each line of a file in an array? > > From section 4.1 in the Perl Cookbook > (http://www.oreilly.com/catalog/cookbook/): > > @bigarray = (); > open(DATA, "< mydatafi

Re:File & Array

2001-09-13 Thread Robert Citek
At 05:27 PM 9/13/2001 +0200, Jorge Goncalvez wrote: >Hi, How in Perl you can store each line of a file in an array? >From section 4.1 in the Perl Cookbook (http://www.oreilly.com/catalog/cookbook/): @bigarray = (); open(DATA, "< mydatafile") or die "Couldn't read from datafile: $!\n"; whil

Re:File & Array

2001-09-13 Thread Jorge Goncalvez
Hi, How in Perl you can store each line of a file in an array? Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]