Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^5: following if condition fails to print its variable using perl?

by huck (Parson)
on Mar 15, 2017 at 09:58 UTC ( #1184672=note: print w/replies, xml ) Need Help??


in reply to Re^4: following if condition fails to print its variable using perl?
in thread following if condition fails to print its variable using perl?

print 'name :$name' uses single quotes and the $ is just text, try print 'name :'.$name or print "name :$name"

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2020-02-17 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (71 votes). Check out past polls.

    Notices?