develooper Front page | perl.beginners | Postings from August 2009

Re: two questions

Thread Previous | Thread Next
August 6, 2009 03:31
Re: two questions
Message ID:
On Thu Aug 06 2009 @  2:29, sys adm wrote:
> I do hate to write s/^\s+|\s+$//g for each and each time,just got tired of it.
> So I hope perl can have that a string operator, since many script languages have that, and it's used universally.

Write the subroutine once, and then you won't have to do much more typing
than you would in a language that has that as a built-in function.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About