Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Can you assign to pos() in a s/foo/bar/g

by johngg (Canon)
on Oct 25, 2007 at 18:23 UTC ( #647245=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/local/bin/perl -l
    #
    ...
    s{(?:(?<=__)|\G)[A-Z]_}{}g;
    
    print;
    
  2. or download this
    DFR7234C__A_B_C_Bonzo_Dog_D_B
    DFR7234C__Bonzo_Dog_D_B
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2020-10-22 16:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (227 votes). Check out past polls.

    Notices?