> -----Original Message-----
> From: Sophia Corwell [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 08, 2001 2:56 PM
> To: [EMAIL PROTECTED]
> Subject: Deleting leading/trailing whitespace
>
>
> Is there a way to delete leading/trailing whitespace
> in one fly?
>
> I have the following:
>
> $temp =~ s/^\s+//; # Removing leading spaces
> $temp =~ s/\s+$//; # Removing trailing spaces
>
> Is there a way to combine these two statements into
> one?
The two-step solution is best; leave it that way. The FAQ addresses this
issue in detail:
perldoc -q strip
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]