http://www.perlmonks.org?node_id=522531

jesuashok has asked for the wisdom of the Perl Monks concerning the following question:

Hi Gr8 People

To trim Spaces we used to do a regular expression of following

+ $value =~ s/^\s+//g; $value =~ /\s+$//g;
Is there any other built in function available to do the stuff. This will be useful for the People who wants to use perl's functions effectively.

"Keep pouring your ideas"