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 to understand:
>
>    open INDATA, "< $file" or die "Couldn't open $file for reading: $!";
>    chomp ( my @bigarray = <INDATA> );

True.  I wanted to give a good reference, the Cookbook, which explains
manipulating arrays and a lot of other things.

Regards,
- Robert


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to