Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 scrutinizing the Monastery: (17)
As of 2014-12-18 15:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (58 votes), past polls