push @array, $_ for myfunct($str1, $str2);
the postfix-for automatically uses $_ as loop variable.
But this looks weird, is your function returning a list?
2) say vs print
say starts a new line (inserts a "\n" at the end)
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re: print and say
by LanX
in thread print and say
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |