Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Question regarding printing Special Characters in perl

by Anonymous Monk
on Jan 05, 2013 at 01:28 UTC ( #1011751=note: print w/replies, xml ) Need Help??

in reply to Question regarding printing Special Characters in perl

Because quotes are quotes,
print "module( ... ... $display("The time is %d",$time)\n"; ^_OPEN ^_CLOSE ^_OPEN ^_CLOSE

Shortest way to fix it is with alternate delimiter ({} needs to be balanced)

print qq{module( ... ... $display("The time is %d",$time)\n};

interpolation, read about it in perlintro, perlop, and Modern Perl, search for "interpolat", in short, single quotes do not interpolate, and

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011751]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2016-12-11 09:21 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (169 votes). Check out past polls.