Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: print not behaving as expected

by Viking (Beadle)
on Jan 02, 2001 at 02:09 UTC ( [id://49250]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: print not behaving as expected
in thread print not behaving as expected

I changed it to $response =~ s/\n|\r//g; and now it works, thanks merlyn

Replies are listed 'Best First'.
Re: Re: Re: print not behaving as expected
by merlyn (Sage) on Jan 02, 2001 at 03:02 UTC
Re: Re: Re: print not behaving as expected
by runrig (Abbot) on Jan 02, 2001 at 03:03 UTC
    You ought to change it to:
    $response =~ tr/\n\r//d;
    tr/// is for translating/stripping characters. Save s/// for real regexes :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://49250]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.