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

Popular posts from this blog

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?

grails record upload problems

how i emanate permitted url asp.net mvc?