Perl Carrage Returns

Robert Meyer meyer_rm at yahoo.com
Wed Dec 11 11:46:08 EST 2002


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



More information about the nflug mailing list