http://www.perlmonks.org?node_id=977710


in reply to Insert a variable without quotes

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...