[RFC] Text::Echelon v0.01
Wilson, Andrew (Belfast)
Andrew.Wilson at trw.com
Mon Dec 17 10:23:21 CST 2001
> -----Original Message-----
> From: Wesley Darlington [mailto:wesley at yelsew.com]
> Sent: 17 December 2001 15:45
> To: belfast-pm at pm.org
> Subject: Re: [RFC] Text::Echelon v0.01
>
>
> 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>;
> ...?
Doesn't that chomp the return value of push, which is the numbedr of
elements
added to the array?
cheers
Andrew
More information about the Belfast-pm
mailing list