[RFC] Text::Echelon v0.01
Tony Bowden
tony at kasei.com
Mon Dec 17 13:45:58 CST 2001
On Mon, Dec 17, 2001 at 05:22:13PM +0000, Wesley Darlington wrote:
> On Mon, Dec 17, 2001 at 04:23:21PM -0000, Wilson, Andrew (Belfast)
> > > From: Wesley Darlington [mailto:wesley at yelsew.com]
> > > chomp, push @wordlist, $_ for <DATA>;
> > Doesn't that chomp the return value of push, which is the numbedr of
> > elements added to the array?
> Does it?
Nope.
It's really not that hard to test these things before posting, you know!
With a wave of the hands, I conjure a test script from an earlier post:
# chomp(my @array = <DATA>);
chomp, push @array, $_ for <DATA>;
local $" = "><";
print "We have <@array>\n";
__DATA__
foo
bar
baz
Now, for pennance, Andrew can explain why it *does* work ...
Tony
More information about the Belfast-pm
mailing list