in reply to Detecting type of output from subs
Gives:use strict; use warnings; sub mysuba { my @fred = qw(The quick brown fox); return @fred } sub mysubb { return qw(The quick brown fox) } my $resa = mysuba(); print "$resa\n"; my $resb = mysubb(); print "$resb\n";
So you do have to be careful of context, and what the subroutine returns.4 fox
|
|---|