in reply to Re^2: Pulling out an element from a function return without using an intermediate list
in thread Pulling out an element from a function return without using an intermediate list
use strict; use warnings; my (undef, $param, undef, $other, @stuff) = dir(); print "undef, $param, undef, $other, @stuff"; sub dir { return (1, 2, 3, 4, 5, 6); }
Prints:
undef, 2, undef, 4, 5 6
Works fine for me. What version of Perl are you using?
|
|---|