in reply to Re: a method to get words from a file into an array
in thread a method to get words from a file into an array

sub readthingy { local @ARGV = @_; local $/ = ', '; return <>; # ref to array might be faster }

This is not equivalent to the original. Ask yourself, "what happens to newlines?"

-sauoq
"My two cents aren't worth a dime.";

Replies are listed 'Best First'.
Re: Re: Re: a method to get words from a file into an array
by Juerd (Abbot) on Aug 09, 2002 at 05:50 UTC

    This is not equivalent to the original. Ask yourself, "what happens to newlines?"

    Did I ever claim it was? Besides, if it were equivalent, there would be no point in posting it.

    - Yes, I reinvent wheels.
    - Spam: Visit eurotraQ.