Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: weird problem

by Riales (Hermit)
on Apr 20, 2012 at 21:09 UTC ( #966259=note: print w/replies, xml ) Need Help??


in reply to weird problem

Why do you do this:

$txt =~ s/\n{3,}/\n\n/g;

When you're going to do this anyways:

$txt =~ s/\r|\n//g;

?

Also, I don't think you need that first print FILE;

Also, try adding or die $! after your open calls.

Replies are listed 'Best First'.
Re^2: weird problem
by Anonymous Monk on Apr 20, 2012 at 21:12 UTC
    I tried what you suggested, although it's neater it doesnt solve the problem..

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://966259]
help
Chatterbox?
marto waves
[karlgoethebier]: hello jedikaiti! something shiny tonight?
[jedikaiti]: It's a very pretty shiney
[jedikaiti]: Shiney!
[karlgoethebier]: very nice!

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2017-11-21 17:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (308 votes). Check out past polls.

    Notices?