in reply to Re: Re: Re: Passing an array to a subroutine
in thread Passing an array to a subroutine
sub subgen { my($data) = shift; chomp($data); my($cur_segno) = 0; my(@sst) = (); open(FILE, $data); # or die "Cannot open: @data\n"; my $hdr = <FILE>; #read in the first line chomp $hdr; my @colnames = split /, ?/, $hdr; #split the header into an array
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: Passing an array to a subroutine
by chromatic (Archbishop) on Aug 01, 2001 at 00:06 UTC | |
by gisrob (Novice) on Aug 01, 2001 at 00:25 UTC |