Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Welcome to the Monastery
 
PerlMonks  

(tye)Re: 99 bottles, 2 lines

by tye (Cardinal)
on Nov 28, 2000 at 22:03 UTC ( #43725=note: print w/ replies, xml ) Need Help??


in reply to Re: 99 bottles, 2 lines
in thread 99 bottles, 2 lines

s/\d{2}/$1--/g

Can't you just use:

s/\d{2}/$1-1/ge
except that this will fail when you get down to 1 digit.

        - tye (but my friends call me "Tye")


Comment on (tye)Re: 99 bottles, 2 lines
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2014-04-20 12:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls