Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Insert a variable without quotes

by Eliya (Vicar)
on Jun 21, 2012 at 20:48 UTC ( #977710=note: print w/ replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://977710]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2016-06-25 03:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (323 votes). Check out past polls.