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! Pete -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]