in reply to Re: Passing an array to a subroutine
in thread Passing an array to a subroutine
sub subgen { my $aref = @_; my($cur_segno) = 0; my(@sst) = (); open(FILE, $aref); #or die "Cannot open: $file\n"; my $hdr = <FILE>; #read in the first line chomp $hdr; my @colnames = split /, ?/, $hdr; #split the header into an array open GENFILE, '>genfile.txt'; open INFOFILE, '>infofile.txt'; my $sst_mean; my %fronts; while (<FILE>) { <snip>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Passing an array to a subroutine
by suaveant (Parson) on Jul 31, 2001 at 21:04 UTC | |
by gisrob (Novice) on Jul 31, 2001 at 22:49 UTC | |
by chromatic (Archbishop) on Aug 01, 2001 at 00:06 UTC | |
by gisrob (Novice) on Aug 01, 2001 at 00:25 UTC |