[RFC] Text::Echelon v0.01

Wilson, Andrew (Belfast) Andrew.Wilson at trw.com
Mon Dec 17 10:07:28 CST 2001


Hi 

> -----Original Message-----
> From: Steve Rushe [mailto:steve-pmbelfast at blackstar.co.uk]
> Sent: 17 December 2001 15:42
> 
> 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.
> 
> I think you'll find that you'll get a list containing the number of
> characters chomped off each entry in <DATA>.
> 
> The chomp pod says chomp "returns the total number of 
> characters removed from all its arguments".

Indeed it does.  <hangs head in shame> You obvioulsy know perldoc perlfunc
much better than I do :-/  I could have sworn it returned whatever it
chopped of the end like chop does.

All the rest of my previous reply still stands the map is not a good way to
do this.

Aha! i just realised I sent my reply directly to Scott.  I'll forward it so
this makes sense.

cheers

Andrew




More information about the Belfast-pm mailing list