Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: DBI converting hex values

by shmem (Chancellor)
on Nov 02, 2006 at 18:52 UTC ( #581945=note: print w/replies, xml ) Need Help??


in reply to Re: DBI converting hex values
in thread DBI converting hex values

From Saints in our Book: "..and remember there are a lot of things monks are supposed to be but lazy is not one of them" :-)
perl -le ' print "0x",unpack "H*",pack "A*","Paul"' 0x5061756c

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Replies are listed 'Best First'.
Re^3: DBI converting hex values (lazy)
by tye (Sage) on Nov 02, 2006 at 18:54 UTC

    You might want to be more lazy and skip the pack "A*". (:

    - tye        

      Darn, you're right... do { print ((my $hubris = $hubris) >>= 1)} for $this_one :-)

      --shmem

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://581945]
help
Chatterbox?
[james28909]: thanks
[james28909]: what i am trying to do is track state of a chat based application. i need to be able to store the channels and such for a user, and when they join a new server/channel i need to be able to update that feild.
[james28909]: do you think OO would best suite that?
[karlgoethebier]: james28909: The last two are not mainstream. You have been warned ;-)

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2017-05-25 16:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?