in reply to Subroutine - Return Array
Line by line...
@row= {AAA,BBB};
You probably mean to say,
@row = ( 'AAA', 'BBB' );
Or...
@row = qw/AAA BBB/;
But you ought to be limiting scope, and in fact, strict is going to require that you do so. Thus....
sub job { my @row = qw/AAA BBB/; return @row }
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Subroutine - Return Array
by JavaFan (Canon) on Nov 11, 2010 at 11:35 UTC |