leading spaces and Perl. (GAAAAA!)
Lance F. Squire
lance-5ZoueyuiTZhBDgjK7y7TUQ at public.gmane.org
Fri Oct 24 18:15:53 UTC 2003
Sergey Kuznetsov wrote:
>
> just do it in this way:
>
> $Uname =~ s/(?:^\s+|\s+$)//g;
>
> It will remove trailing spaces from both sides in one call.
>
> All the Best!
> Serge
> --
Thanks Serge,
Unfortunatly during testing this version i realized I had added quotes
BEFORE trying to remove spaces. (STUUUUPAAAAADDD!!!)
All previous versions work properly now.
Sorry for the trouble,
I'll just go out and Shoot myself now. ;)
Lance
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list