> -----Original Message-----
> From: Javeed SAR [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 09, 2002 5:05 PM
> To: [EMAIL PROTECTED]
> Subject: spaces in a variable
> 
> 
> Hi,
> 
> How to remove spaces in a variable?
> For eg if i have  variable $te
> 
> $te = $attr_tag .  $date;
> chomp$te;
> print "$te";
> 
> Gives me output as follows:
> 
> SYNC_CHECKWed Oct 9 12:20:53 2002
> 
> I want to remove all the spaces in output variable $te.
> 

$te =~ s/\s+//g;



> Regards 
> javeed
> 
> 
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to