in reply to How do I remove all of the blank spaces in a string?

($a_new_variable = $batch_date) =~ tr[ \n\t][]d;

This should be slightly faster then s///.