Normally when list context is needed you might say (my $s)=func_returning_list();, with the my on the insidemy ($s) causes list context too.
Note that you would not say my ($x,$y) as that is actually a syntax error.That works fine here on perl 5.10.0 and on any earlier perl I can remember
$ perl -Mstrict -cwe 'my ($x,$y)' -e syntax OK
In reply to Re^2: Add Perl Varibles in system()
by FunkyMonk
in thread Add Perl Varibles in system()
by ahjohnston25
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |