in reply to Re^2: why doesn't "my ($a,$b)" return a list?
in thread why doesn't "my ($a,$b)" return a list?

Yes, it is mentioned in the perlfunc manpage under keys and values. Strange that is not in perldelta.

Update: Link fixed.

  • Comment on Re^3: why doesn't "my ($a,$b)" return a list?

Replies are listed 'Best First'.
Re^4: why doesn't "my ($a,$b)" return a list?
by LanX (Saint) on Aug 23, 2010 at 14:48 UTC
    Thx!

    the necessity use feature qw(:5.12); isn't documented either.

    see feature

    could you plz check if it works without it?

    Cheers Rolf

      Yes, it does work without use feature qw(:5.12);, but you might want to keep it anyway just to show that the code requires v5.12, otherwise you might have problems trying to run code on older Perls.

        That's what 'use 5.12' is for. That's preferred over 'use feature qw(:5.12)', as feature.pm didn't appear before 5.10, so if you run it on 5.8, you get an error complaining about a missing feature.pm, while if you have 'use 5.12', 5.8 understands this, and tells you 5.8 isn't a high enough version.