Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Text manipulation with perl

by johndageek (Hermit)
on Sep 29, 2005 at 21:13 UTC ( [id://496250]=note: print w/replies, xml ) Need Help??


in reply to Text manipulation with perl

What have you tried? Please post your code.

Enjoy!
Dageek

Replies are listed 'Best First'.
Re^2: Text manipulation with perl
by jriggs420 (Sexton) on Sep 30, 2005 at 13:35 UTC
    in reply to Text manipulation with perl WOW, I am suprised so many have taken interest in my little problem, as requested here is where I am at right now with the code:
    open(TXT,"$ARGV[0]") || die "Cannot open the $ARGV[0] file"; $instr = do{local $/; <TXT> }; close(TXT); chomp($instr); $instr =~ s/\n+/\n/g; $instr =~ s/\-\s+([^\n]+)/\'$1\'\//g; chop($instr); open(TXT,">$ARGV[1]") || die "Cannot open the $ARGV[1] file"; print TXT $instr; close(TXT);
    Any suggestions? P.S. I didn't do this all by myself, but I at least understand what is going on.

Log In?
Username:
Password:

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

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

    No recent polls found