in reply to Pulling white space off before/after string?
Modify file inplace and make a backup copy to filename.html.bak the easy way.$my_data_line =~ s/^\s+|\s$+//g;
perl -p -i.bak -e 's/^\s+|\s$+//g' *.html
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Pulling white space off before/after string?
by romskie (Initiate) on Aug 30, 2012 at 09:06 UTC |