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

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.

Replies are listed 'Best First'.
Re^6: why doesn't "my ($a,$b)" return a list?
by JavaFan (Canon) on Aug 24, 2010 at 12:08 UTC
    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.