in reply to Re: Re: Re: Re: Re: Better way to search?
in thread Better way to search?

Slices don't act like arrays in scalar context though.

That has always bugged me. Personally I wish that Perl were a little less DWIM about:

$elem = @array[0];
If that did something completely unexpected to the novice, then they might learn sooner what the correct notation is...

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Re: Re: Better way to search?
by merlyn (Sage) on Jan 05, 2001 at 06:42 UTC
      I know what they do. I just think it would be better if they did something else. :-)