Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 rifling through the Monastery: (5)
As of 2014-12-18 00:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (41 votes), past polls