my $date = <>;
You don't show how you actually tried to use the value, but I suspect the problem is that you don't chomp $date, so it still contains the newline...
In reply to Re: Insert a variable without quotes
by Eliya
in thread Insert a variable without quotes
by LaneM1234
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |