in reply to first missing number

Just one question...where did you initialize $_?
Or shouldn't the places where you do $_->[$p] be $_[0][$p] unless you have an invisible ($_)=@_; at the beginning?

Interesting algorithm, I'm sure I would be useful for something...someday, I just can't think what :)

Replies are listed 'Best First'.
Re: Re: first missing number
by japhy (Canon) on Dec 19, 2000 at 18:58 UTC
    Oops, my apologies. I wrote it as passing the array, and then I realized it'd be faster to pass an array ref. And I misadjusted.

    japhy -- Perl and Regex Hacker