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

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

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

    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.