> >   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.

Are you remembering this:

  my $a = 1;
  ($a, undef, my $b) = 1..3;

If you attempted to do 

  my ($a, undef, $b) you'd get a warn error about re-declaring $a.

Paul

Reply via email to