> -----Original Message----- > From: Larry Sandwick [mailto:[EMAIL PROTECTED] > > I have a scripted I wrote that uses *substr* on a file that has fixed > fields. I have to parse the file before I upload into MYSQL. > > Is there a more efficient way other than *substr*, I looked a > *pack* and > *unpack* . it did not make any sense to me.
>From my own limited performance testing (using the Benchmark module), I've found that substr is faster than unpack. Luke -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>