Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Is there a module for object-oriented substring handling/substitution?

by smls (Friar)
on Jan 24, 2013 at 22:46 UTC ( #1015241=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      my $document = new My::String( read_file('doc.txt') );
      my @sections = $document->split( qr/^------\n/ );
      my @markers = $sections[2]->match( qr/{{\w+}}/ );
    ...
      }
      
      write_file( 'doc.txt', $document->text() );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1015241]
Approved by johngg
Front-paged by Arunbear
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 2014-10-02 02:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (44 votes), past polls