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

> keys(), and values() functions now operate on arrays,

are you sure? I was only able to find each in perldelta ...

can't test it myself!

Cheers Rolf

Replies are listed 'Best First'.
Re^3: why doesn't "my ($a,$b)" return a list?
by kejohm (Hermit) on Aug 21, 2010 at 01:20 UTC

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

    Update: Link fixed.

      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.