On Fri, 19 Nov 2004 12:00:44 +0530, Anish Kumar K.
<[EMAIL PROTECTED]> wrote:

> I tried
> $recField[0] =~  s/" "//g;

This is a FAQ and is well discussed in this group's Usenet archives as
well on perldoc.com under Faq4: 
http://perldoc.com/perl5.8.4/pod/perlfaq4.html

http://perldoc.com/perl5.8.4/pod/perlfaq4.html#How-do-I-strip-blank-space-from-the-beginning-end-of-a-string-

$recField[0] =~ /^\s+//; # Erase starting white space
$recField[0] =~ /\s+$//; # Erase ending white space

-- 
WC -Sx- Jones
http://insecurity.org/

-- 
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