There must be a newline character at the end of the output of DATE /T
Either:
a) see if there's a parameter that can be passed to DATE so that it doesn't print a newline; or
b) use the 'chomp' function on $x to remove the newline before creating $y.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.