in reply to Re^2: Splitting a large file into smaller files according to indexes
in thread Splitting a large file into smaller files according to indexes
it is initialised to -1 (or whaterver other value your mrule number will not take) in order to force the opening of the file upon seeing the mrule pattern for the first time.
Glad it worked (it's Perl after all) but I stress that it is untested by me for more complex cases.
bliako
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Splitting a large file into smaller files according to indexes
by bliako (Monsignor) on Apr 06, 2018 at 12:23 UTC |
In Section
Seekers of Perl Wisdom