Dan Muey wrote: > > > > sub rmgtlt { join '', split /^<|>$|\n|\r|\s$/, $_[0] } > > Ooohh that works! > > Now that prompts a few other questions : > 1) It works with and with out a semi colon behind $_[0], why and which one is better?
The semicolon is optional, neither way is "better". > 2) Is that the same as just leaving out the return line ? The "return" key word is optional. The sub returns the value of the last expression. > 3) Is there any reason why the result may end up being different than the two line > version? None that I can think of off the top of my head. :-) > If any one has any thoughts about the pros and cons of that then I'd love to hear it. > > I'll put that line in my test to compare different methods and see which iod faster. > > Thanks a lot John! You're welcome. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]