On Mon, 10 Sep 2001, Derrick (Thrawn01) wrote:
> Now that I think about it it could be done like this
>
> @tary = unpack "a4a2a2", @data[0]->[17];
> $last_open = "$tary[0]-$tary[1]-$tary[2]";
>
> But wich would be faster ? would unpack be faster than the exp engine?
>
> Anyone's thoughts ?
I betcha unpack is faster! I did a benchmark like this a while back, and
unpack was slightly faster than a regex. When you bring a printf into the
equation, it's going to be less efficient also.
-- Brett
http://www.chapelperilous.net/
------------------------------------------------------------------------
Prunes give you a run for your money.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]