From your question, I'm not clear what you're trying to achieve. Could you give more detail?
If you just want to remove spaces from a variable, try $batch_date =~ s/\s//g;.
In reply to Re: How do I remove all of the blank spaces in a string?
by tomhukins
in thread How do I remove all of the blank spaces in a string?
by harmony
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |