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 08:02 UTC
Re: Re: Re: print not behaving as expected
by runrig (Abbot) on Jan 02, 2001 at 08:03 UTC
    You ought to change it to:
    $response =~ tr/\n\r//d;
    tr/// is for translating/stripping characters. Save s/// for real regexes :-)