Dan Anderson <[EMAIL PROTECTED]> wrote: : Is there a way to chomp all whitespace both at the beginning : and end of a string? I was thinking of using a regexp like : s[^\s*?][]sg and s[\s*?$][]sg; Is there a better way? : (I'm thinking of PHP's trim function)
See perlfaq4: How do I strip blank space from the beginning/end of a string? HTH, Charles K. Clarkson -- Head Bottle Washer, Clarkson Energy Homes, Inc. Mobile Home Specialists 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>