in reply to Re^2: Optimise file line by line parsing, substitute SPLIT
in thread Optimise file line by line parsing, substitute SPLIT

In this kind of application, try to filter first e.g. next unless /^abcd/ and only split if you need the fields separated.

Replies are listed 'Best First'.
Re^4: Optimise file line by line parsing, substitute SPLIT
by vsespb (Chaplain) on Jun 03, 2013 at 14:34 UTC
    Yes, sure, if I filter by first field. Otherwise split+regexp will be slower than just regexp or than split+comparsion.