If you notice, Foxcub has tried stringifying the array, by enclosing it in quotes. That's where the interpolation happens.
my @foo = 1..5; print "@foo" =~ /1 2 3 4 5/; # prints '1' for success.
--
Tommy
Too stupid to live.
Too stubborn to die.
In reply to Re: Re: Re: Pattern matching across an array
by tommyw
in thread Pattern matching across an array
by Tanalis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |