|We don't bite newbies here... much|
TRIM in Perl?by peacemaker1820 (Pilgrim)
|on Sep 10, 2002 at 14:00 UTC||Need Help??|
peacemaker1820 has asked for the wisdom of the Perl Monks concerning the following question:
I would like to trim some words in my data file from the leading and trailing spaces. Let's say if I have:
after doing this,
that will drop all the leading and trailing spaces
This will certainly solve my problem, but I was wandering if there is a built in SUB for strings in Perl that does the same job?