($temp) = $temp =~ m/^\s+(\S*)\s+$/;
regards,
Sudarsan
Sophia Corwell wrote:
> 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?
>
> Thanks in advance,
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]