Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 scrutinizing the Monastery: (6)
As of 2015-07-29 00:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls