in reply to Re^2: Change the behavior of Perl's IRS
in thread Change the behavior of Perl's IRS
But see, that's precisely what I'm trying to avoid, anything except the absolute minimum of code which I'd like to think Perl strives for.
True. This is often done by placing reusable code in modules. I wrote the solution to be reusable so you could place it in a module. All that's left is two lines:
my $rec_reader = make_rec_reader('myrecordsep'); while (my $rec = $rec_reader->($fh)) { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Change the behavior of Perl's IRS
by BrowserUk (Patriarch) on Jul 15, 2007 at 08:04 UTC | |
by ikegami (Patriarch) on Jul 16, 2007 at 02:31 UTC |