Normally when list context is needed you might say (my $s)=func_returning_list();, with the my on the inside.
Based on all the posts I've seen here, that's actually much rarer than my ($s). In fact, I rarely see (my $s). It's just too wordy. Compare
(my $x, my $y, my $z) = @_;
with
my ($x, $y, $z) = @_;
I was going to count the nodes with "(my" and count those with "my (", but I don't have a handy way of avoiding open(my $fh, ...). Despite that common construct seriously throwing off the count, "my (" still appears more often.
And of course, your code is subject to the shell equivalent of Bobby Tables.
|