in reply to Re: Creating an array from a text file
in thread Creating an array from a text file

Okay, I have to ask: was that just tongue-in-cheek, or do you see some benefit to potentially confusing the poor seeker? :)

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

  • Comment on Re: Re: Creating an array from a text file

Replies are listed 'Best First'.
Re: Creating an array from a text file
by Abigail-II (Bishop) on Aug 13, 2002 at 16:06 UTC
    Reading in a file into an array is a pretty basic thing to do in Perl. In fact, if you don't know this standard idiom, you shouldn't be programming - you should be studying. So, if my solution causes the seeker to fetch the manuals ago, all the better. If he doesn't and all he wants is something delivered on a silver platter, then I don't want to spend more than one line in giving an answer - and I didn't while my answer was correct and not inefficient.

    And besides, it's an idiom I sometimes use myself. It's faster to code than the open/read/close lines.

    Abigail