$my_data_line =~ s/^\s+|\s$+//g; #### perl -p -i.bak -e 's/^\s+|\s$+//g' *.html