The output from date is terminated by a newline and you have that in your string.
You should use chomp to strip off the newline like this:
$yr = `date -u +%Y`; chomp $yr;
Ed
In reply to Re: simple question
by bfdi533
in thread simple question
by pietyc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |