in reply to Re: A question for the enlightened.
in thread Using aliases in for loops or not?

Thanks for the reply.
Uh, "YMMV"? ;)

I was under the impression that I now used a variable ($record) while it was not needed. Which is memory allocation while not needed, which is inefficient. Or am I wrong on this point? I *do* agree that it is more readable though.

Regards,

-- Detonite

Replies are listed 'Best First'.
Re^3: A question for the enlightened.
by DrHyde (Prior) on Feb 17, 2005 at 10:14 UTC
    Before saying "it's inefficient", did you benchmark it?
      I am unfamiliar with script benchmarking, thus no, but thanks for the heads-up. But it feels to me like renting two trucks to haul stuff, while you only need one. The speed difference will probably not be visible, but I myself consider it sloppy.
      It's like declaring an Int32 while you need is Int16.