Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: (jeffa) Re: another problem with the blank line regex

by xtype (Deacon)
on May 21, 2002 at 22:37 UTC ( [id://168304]=note: print w/replies, xml ) Need Help??


in reply to (jeffa) Re: another problem with the blank line regex
in thread another problem with the blank line regex

i don't do DOS

Why not?
$lines =~ tr/\r//d; $lines =~ tr/\n//s; # or this? $lines =~ tr/\r?\n//s;
I don't know how DOS newlines look, but wouldn't "\n\n" be "\r\n\r\n"?

-xtype

Log In?
Username:
Password:

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

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

    No recent polls found