But @array isn't interpolated anywhere. The =~ operator doesn't impose any magical interpolation of the LHS. Instead, @array is in scalar context, and @array in scalar context is the length of the array.
Update: Oops, sorry, my bad. Missed the parenthesis in the OP. ihbmy @foo = 1..5; print @foo =~ /5/; # prints '1' for success.
In reply to Re: Re: Pattern matching across an array
by ihb
in thread Pattern matching across an array
by Tanalis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |