Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Re: Extracting a hash reference from a string

by bart (Canon)
on Mar 23, 2003 at 09:07 UTC ( [id://245259]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my $start = index($@, 'HASH(0x') + 7;
        my $end   = index($@, ')', $start);
        my $hex   = substr($@, $start, $end-$start);
    
  2. or download this
        my($hex) = $@ =~ /HASH\(0x(\w+)\)/;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-24 19:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found