in reply to Re: Re: Pattern matching across an array
in thread Pattern matching across an array
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.
|
|---|