Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How to split a document at a column

by Ojosh!ro (Beadle)
on Mar 29, 2007 at 13:04 UTC ( [id://607234]=note: print w/replies, xml ) Need Help??


in reply to How to split a document at a column


Isn't this something you can easily do with a regex?
Something along the lines of:

my $text = ''; # put your complete works of Willie here my $separator = '|'; # and your separator here $text =~ s/[\^\n]([^\$\n]{25})/$1$separator/sg; print $text;

if( exists $aeons{strange} ){ die $death unless ( $death%2 ) }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-25 11:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found