in reply to (take two...) Re: A split ing headache
in thread A split ing headache
When assigning to a list of scalars I use: my ($a, $b, $c) = split /:/, $thing, 4; knowing that the last item with all the unsplit bits will just blow away. No reason to promote a list to an anonymous array when you don't have to. Not a big deal tho but I've always felt that asking for 4 parts and only saving 3 made more sense.
--
$you = new YOU;
honk() if $you->love(perl)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: (take two...) Re: A split ing headache
by japhy (Canon) on Dec 12, 2000 at 19:37 UTC | |
by extremely (Priest) on Dec 13, 2000 at 09:05 UTC |