This works for me:
and outputs foomoobar like expected.sub t { @file = ('foo', 'moo', 'bar'); return @file; } @tmp = t(); print @tmp; # print t(); would also work...
In reply to Re: subroutines and returning lists...
by The Mad Hatter
in thread subroutines and returning lists...
by ATB
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |