Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by blakem (Monsignor)
on Oct 15, 2002 at 20:16 UTC ( #205497=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://205497]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2019-08-24 22:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?