in reply to Question on File Handler and Subroutines in Perl
1. Your main call should be:
Update:Corrected per tobyink's recommendation, below.grep_file($_) for @ARGV; # ===
This will call the grep for each file name.
2. Your "open file" should really be "Process_record" -- to process each record of each file.
The file is already open and read, before that is called.
3. I don't see any code to search through the file(s).
As a computer, I find your faith in technology amusing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Question on File Handler and Subroutines in Perl
by tobyink (Canon) on Mar 05, 2019 at 12:53 UTC | |
|
Re^2: Question on File Handler and Subroutines in Perl
by Anonymous Monk on Mar 05, 2019 at 05:10 UTC |