in reply to Re: subtract one array from another
in thread subtract one array from another
The $#array syntax is vaguely deprecated, IIRC...
---
"I hate it when I think myself into a corner."
Matt Mitchell
But since the .. operator takes scalar context, you can just sayfor my $search (0..scalar @array1)
for my $search (0..@array1)
(Update: the "vague deprecation" was from one of the Apocalypses. So it's safe for the indefinite future, I suppose. cf. Apocalypse 2)
---
"I hate it when I think myself into a corner."
Matt Mitchell
In Section
Seekers of Perl Wisdom