[RFC] Text::Echelon v0.01

Wesley Darlington wesley at yelsew.com
Mon Dec 17 09:45:07 CST 2001


On Mon, Dec 17, 2001 at 03:18:52PM +0000, Scott McWhirter wrote:
> >@wordlist = <DATA>;
> my @wordlist = map { chomp; } <DATA>;
> unless you're gaining <DATA> from somewhere other than a file.

According to "perldoc -f chomp", chomp returns not the chomped data,
but the number of characters chomped...   (1,1,1,... :-)

Perhaps...
    chomp, push @wordlist, $_ for <DATA>;
...?

Wesley.



More information about the Belfast-pm mailing list