On Nov 15, 2006, at 12:04 PM, Mark J. Reed wrote:
On 11/14/06, Vincent Foley <[EMAIL PROTECTED]> wrote:
I was toying around with Pugs and I tried the following Perl 5
list assignment
my ($a, undef, $b) = 1..3;
Huh. I didn't think that worked in Perl 5, either. What am I
misremembering?
I distinctly recall having to do things like (my $a, undef, my $b) to
avoid errors because you can't assign to undef. Maybe I'm just
hallucinating.
It didn't work in early Perl, but certainly did by 5.00503. I don't
recall when it was added.
--
brandon s. allbery [linux,solaris,freebsd,perl]
[EMAIL PROTECTED]
system administrator [openafs,heimdal,too many hats]
[EMAIL PROTECTED]
electrical and computer engineering, carnegie mellon university
KF8NH