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

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

hello monks

i would like to know the method to remove the spaces outside the text.
for example,
$text=" The perl ";
i should get output as "The   perl"

Edited by planetscape - added code tags