That won't work. $_ gets aliased in the for loop to the constants '1' and '2'. You could get away with:s#/## for 1,2;
Though, its not real pretty...for my $i (1,2) { s#/## }
-Blake
In reply to Re: (tye)Re: How to make only two of three substitutions?
by blakem
in thread How to make only two of three substitutions?
by curtisb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |