On 10/04/2013 16:45, Bob goolsby wrote:
G'Mornin' Kavita --

Before you go off on a goose chase, how do you know that substr() is going
to be a problem for you?  Have you bench-marked it?  If your file is as
large as you say, I strongly suspect that your bottleneck is going to be
I/O and any differences between unpack() and substr() will be lost in the
noise band below 1%.

Hint:

Try adding

  return "";

as the first statement of `extractFieldValue` (i.e. so that it does
nothing and returns a null string) then run your program and see how
long it takes just doing the IO.

Rob

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to