Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Replacing a string with a memory variable

by VSarkiss (Monsignor)
on Jun 28, 2006 at 14:08 UTC ( [id://558021]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $fmt = '<section id="ch%02dfm" label="" xreflabel="" role="fm">';
    # ..later..
    $_ =~ s/<CT>/sprintf $fmt, $acno/ge;
    
  2. or download this
    s/<CT>/sprintf $fmt, $acno/ge;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-04-26 02:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found