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

Functions in substitutions (s///) and Perl 5.8.

by v_thunder (Scribe)
on Oct 23, 2002 at 19:59 UTC ( [id://207511]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    s/\[\[(\w+)\]\]/$helper->($1)/eg;
    
  2. or download this
    panic: sv_pos_b2u: bad byte offset at [...].
    
  3. or download this
    s/\[\[(\w+)\]\]/@{[$helper->($1)]}/g;
    
  4. or download this
    while (m/\[\[(\w+)\]\]/) {
        my $foo = $helper->($1);
        s/\[\[(\w+)\]\]/$foo/;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://207511]
Approved by fglock
Front-paged by rob_au
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-24 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found