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 |