Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: Regular expressions Containing Octal values?

by mephit (Scribe)
on May 17, 2002 at 20:16 UTC ( [id://167401]=note: print w/replies, xml ) Need Help??


in reply to Re: Regular expressions Containing Octal values?
in thread Regular expressions Containing Octal values?

One good thing about this hash approach is that, when you want to "rebuild" with the original names, you can just reverse the hash to build the "reverse lookup table."
%reverse_hash = reverse %hash;
This won't work if the values in the original hash aren't unique, of course. (I don't know chemistry, so I don't know if that's the case). Plus, you'd probably need to use actual strings as values for the original hash, as well.

--

Mephit (See my home node for my rant about Opera and PerlMonks, and my earliest nodes.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-18 21:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found