Thanks for the tip. That fixed it. Prentice
-----Original Message----- From: Shawn Corey [mailto:[EMAIL PROTECTED] Sent: Thu 3/9/2006 12:27 PM To: Bisbal, Prentice; [email protected] Subject: Re: Strange problem assigning values to strings Bisbal, Prentice wrote: > I think you're on to something. This is what the debugger shows: > > DB<17> x [EMAIL PROTECTED] > 0 ARRAY(0x90c420c) > 0 "706840\cM" > 1 "706846\cM" > 2 "715596\cM" > 3 "715620\cM" > 4 "722292\cM" > 5 "722300\cM" > 6 "722327\cM" > 7 "722330\cM" > 8 "722340\cM" > 9 "722468\cM" > 10 "722894\cM" > 11 "723594\cM" > 12 "723618\cM" > 13 "723620\cM" > 14 "723660\cM" > 15 "723668\cM" > 16 "723674\cM" > 17 "723691\cM" > 18 "723695\cM" > 19 "723962\cM" > 20 "724072\cM" > 21 "724104\cM" > 22 "724185\cM" > 23 "724189\cM" > > Ctrl-M is a carriage return, How can I eliminate a carriage return? Will > chomp work, or is that only for newlines? > > Prentice I think chomp is only for newlines (ASCII 0x0a). chop will cut off the last character. But to be safe use: $num =~ s/\cM//g; -- Just my 0.00000002 million dollars worth, --- Shawn "Probability is now one. Any problems that are left are your own." SS Heart of Gold, _The Hitchhiker's Guide to the Galaxy_ "This statement is true but unprovable." Kurt Godel * Perl tutorials at http://perlmonks.org/?node=Tutorials * A searchable perldoc is at http://perldoc.perl.org/
