in reply to Re: Re: optimization - exists should return a reference
in thread optimization - exists should return a reference

That won't do what you think it does. Remove the my for it to work.

Abigail

Replies are listed 'Best First'.
Re: Re: optimization - exists should return a reference
by BrowserUk (Patriarch) on Jan 15, 2003 at 14:02 UTC

    Good point. I'm always doing that in real code too. I substituted $_ for the purposes of the example, but I realise that may not be useful in many situations.


    Examine what is said, not who speaks.

    The 7th Rule of perl club is -- pearl clubs are easily damaged. Use a diamond club instead.