in reply to chop() and list assignments
Which prints as expected:sub foo {chop @_}; my @a = ('ab', 'cd', 'ef'); print foo(@a), "\n";; my $b = 'abcdef'; print foo($b), "\n";
f f
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: ttchop()/tt and list assignments
by converter (Priest) on Mar 06, 2001 at 08:06 UTC | |
by japhy (Canon) on Mar 06, 2001 at 08:49 UTC | |
by tye (Sage) on Mar 06, 2001 at 10:52 UTC | |
|
Re (tilly) 2: Re: ttchop()/tt and list assignments
by tilly (Archbishop) on Mar 06, 2001 at 08:12 UTC |