in reply to Re: Re: Pulling out pairs
in thread Pulling out pairs

The problem is that the optimiser will see:
($a, $b) = split /:/
And know that things can go faster by turning that into:
($a, $b) = split /:/, $_, 3
thus you actually should write:
(my ($a, $b) = split /:/, $_, 5) == 4 or next;

Replies are listed 'Best First'.
Re: Re: Re: Re: Pulling out pairs
by blakem (Monsignor) on Dec 13, 2001 at 11:23 UTC
    Well done. That's exactly what I was getting at.

    (I would have just /msged this response, except you cant /msg anonymonk....)

    -Blake