Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Printing Last Element of a line using perl memory?

by 7stud (Deacon)
on Feb 15, 2013 at 01:44 UTC ( #1018827=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Printing Last Element of a line using perl memory?
in thread Printing Last Element of a line using perl memory?

You can even get a little fancier if you want:

my $string = "\x15hello"; printf "%#*vx \n", " ", $string; --output:-- 0x15 0x68 0x65 0x6c 0x6c 0x6f

And the printf() actually reveals every character's ord(), so it's not confined to ascii characters.


Comment on Re^3: Printing Last Element of a line using perl memory?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (13)
As of 2015-07-31 19:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (280 votes), past polls