Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: syntax of Data::Dump (perlquote oct octal escape perlrebackslash)

by Anonymous Monk
on Nov 06, 2014 at 01:36 UTC ( [id://1106297]=note: print w/replies, xml ) Need Help??


in reply to syntax of Data::Dump

oct , perlquote, http://perldoc.perl.org/perlrebackslash.html#Octal-escapes, perlnumber, octal
$ perl -le " print 041 " 33 $ perl -le " print chr 041 " ! $ perl -le " print chr 33 " ! $ perl -le " print ord q{!} " 33

So the integer 33 is written in octal as 041, and if you chr 33 you get !

Make sense?

In a double quoted string 041 is 041, but \041 is chr 33 (octal escape)

$ perl -le " print qq{041} " 041 $ perl -le " print qq{\041} " !

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2024-04-16 08:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found