Thanks for the reply, and such a detailed one at that.
I guess my real question was somewhat lost in my lenghty description of my recent situation. Really, it was more of a design philosiphy question rather than a Perl question.
To be clearer:
[ qw( a b c ) ] (could be)
== [ qw( a b c ) ] when you are referencing the reference to the anonymous array back as the reference to the key. Again, I know this isn't possible... and I also realize that the stringified value could be unique (though not guaranteed since it is to be the memory reference address which could be re-used by another object/struct/etc), still not exactly what I was looking for.
Really, I know I can't do this as I really want to. It was a methodology I used when I designed apps in (dare I say it) Java (and a long time ago, when I was a little dumber). I was really hoping to see if anyone else has ran into such a situation, and if so, how did they get around it.
Thanks again for your reply, though; sometimes it's harder to explain a programatic situation in a textfield that I sometimes give myself credit for.
---hA||ta----
print map{$_.' '}grep{/\w+/}@{[reverse(qw{Perl Code})]} or die while ( 'trying' );
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.