http://www.perlmonks.org?node_id=206022


in reply to Re: subtract one array from another
in thread subtract one array from another

The $#array syntax is vaguely deprecated, IIRC...
for my $search (0..scalar @array1)
But since the .. operator takes scalar context, you can just say
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