Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by Anonymous Monk
on Nov 06, 2014 at 01:36 UTC ( #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? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2022-08-11 07:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?