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


in reply to (tye)Re: How to make only two of three substitutions?
in thread How to make only two of three substitutions?

s#/## for 1,2;
That won't work. $_ gets aliased in the for loop to the constants '1' and '2'. You could get away with:
for my $i (1,2) { s#/## }
Though, its not real pretty...

-Blake