in reply to concating problem

chomp($string);
Update: I really should add that if the string contains just a '\r' (and it looks like it might), chomp won't actually work. You'll have to $string =~ s/\r//g; or $string =~ tr/\r//d;

Replies are listed 'Best First'.
Re: Re: concating problem
by doubtingben (Novice) on Apr 21, 2003 at 18:31 UTC
    Thanks, $string =~ s/\r//g; worked. I did already have a chomp in there, with this addition, life makes sense again.