Anthony Ettinger wrote:
>>    # order matters
>>    $raw_text =~ s/\015\012/\n/g;
>>    $raw_text =~ s/\012/\n/g unless "\n" eq "\012";
>>    $raw_text =~ s/\015/\n/g unless "\n" eq "\015";
> 
> Does it make any difference if I use s/\cM\cJ/cJ/ vs. s/\015\012/\n/g ?

The string "cJ" in your example is completely different than the string "\n"
and even if you had used "\cJ" it would still not be the same some of the time
and you don't have the /g option on your example.


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to