> Dan,
> 
>   I can do it in one line. But I'm not convinced it's the 
> "right"  way to do it; i.e. it seems like it's cheating:
> 
> sub rmgtlt {
>     $_[0] =~ s/^\<|\>$|\n|\r|\s$//g ? return $_[0] : return $_[0]; }
> 
> There's got to be a better way that doesn't use this 
> if-then-else approach. I'd vote for keeping it the way you've 
> done it; I don't think you'll gain anything by having it on 
> just one line, unless it's just _satisfying_ to have it that way!

It was just an ego trip disguised as an effort for efficiency. :(

That was an interesting solution to the problem.
I may try that against the original way and time it to see which is faster if any for 
kicks.

Thanks

Dan

> 
> Pete
> 
> 
> 
> 

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

Reply via email to