in reply to Re: [Solved] Pick a single item from a sub's return list
in thread [Solved] Pick a single item from a sub's return list

You don't really need to change the function to use a reference based solution.

use Modern::Perl; sub givelist { return 'a' .. 'c'; } say [givelist()]->[1];
Ron