Perl Carrage Returns

Justin Bennett Justin.Bennett at dynabrade.com
Thu Dec 12 14:27:54 EST 2002


Got it to work with the VI command. Nice thanks alot.

Justin

Robert Meyer said:
> Well, if you're using VI to do the insert, try ^V^M to get the ^M
> inserted. If that doesn't work, try:
> $text =~ s/\015//g;
>
> If that doesn't work, try:
> $text =~ s/\r//g;
>
> If that doesn't work, You go hungry... BOW BOW BOW...
>
> Cheers!
>
> Bob
>
> --- Justin Bennett <Justin.Bennett at dynabrade.com> wrote:
>> For all those Perl Gurus out there, I have a perl script I wrote It
>> takes input from a form and loads it into an oracle database. I'm
>> looking to strip the ^M s out of the large comment field that a
>> windows browser puts in. I can't seem to get the character to match.
>> Any ideas.
>> Something like
>>
>> $text =~ s/^M//g;
>>
>> But I can't seems to generate a ^M that works ideas?
>>
>> Justin
>>
>>
>>
>>
>> --
>> -------------------------------------------
>> Justin Bennett
>> Red Hat (Linux) Certified Engineer
>> Network Administrator
>> Dynabrade Inc.
>> 8989 Sheridan Dr
>> Clarence, NY 14031
>> 716-631-0100 ext 215
>>
>>
>
> =====
> Bob Meyer
> Knightwing Communications, Inc.
> 36 Cayuga Blvd
> Depew, NY 14043
> Phone: 716-308-8931 or 716-681-0076
> Meyer_RM at Yahoo.com
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
> --
> This message has been scanned for viruses and
> dangerous content by Dynabrade using Mailscanner,
> and is believed to be clean.


-- 
-------------------------------------------
Justin Bennett
Red Hat (Linux) Certified Engineer
Network Administrator
Dynabrade Inc.
8989 Sheridan Dr
Clarence, NY 14031
716-631-0100 ext 215





More information about the nflug mailing list