in reply to Re^6: Split tab-separated file into separate files, based on column name (open on demand) (updated)
in thread Split tab-separated file into separate files, based on column name
OK this a "Jein" situation.
Perl is certainly often not the best tool.
But if it comes to sed and awk it's hard to believe, because Larry meticulously copied all features.
I bet, I could easily translate this given awk script in a one2one fashion to Perl, by encapsulating the open on demand into a short sub.
Just look at perlvar , perlrun and perltrap at all the details given concerning awk. Now the startup argument for short data, where overhead counts ...
... startup isn't the same issue anymore like it was 25 years ago.
To make it matter we need start a script over and over again. The realistic approach in this case is to write a persistent service which doesn't even need to start up.
We are not talking about heavy apps like perltidy which may need a second to initialize.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|