how i filehandle management line?
i have subroutine takes filehandle an argument. i filehandle record route specified management line? i don't wish any guess record myself, i only wish pass off subroutine, advantage an array hashes parsed information file.
here's management line quarrel i'm controlling looks like:
$ ./getfile.pl /path/to/some/file.csv
here's commencement subroutine i'm job looks like:
sub parse {
$handle = shift;
@data = <$handle>;
while (my $line = shift(@data)) {
# stuff
}
}
Comments
Post a Comment