Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by blakem (Monsignor)
on Oct 15, 2002 at 20:16 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://205497]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-25 13:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found