in reply to Insert a variable without quotes
my $date = <>; [download]
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...