Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

RE: RE: RE: Postfix, whole-object dereference operators

by japhy (Canon)
on Jul 22, 2000 at 02:01 UTC ( #23854=note: print w/ replies, xml ) Need Help??


in reply to RE: RE: Postfix, whole-object dereference operators
in thread keys function question

I've written a preliminary version of this pragma (it's horrible and ugly, by the way).

use deref; $href = { 1,2,3,4 }; for (sort keys HASH{ $href }) { print "$_ -> $href->{$_}\n"; }
I'm working on a second one that doesn't require the { }. It's difficult, because I have to parse perl, and pretty much the only language that can parse perl is Perl. I mean, my first version breaks in places like:
print "This breaks the HASH{} thing.\n"; # becomes print "This breaks the %{} thing.\n";
I suppose I could run the code through B::Deparse, but that might break parts of it, which would be A Bad Thing. $_="goto+F.print+chop;\n=yhpaj";F1:eval


Comment on RE: RE: RE: Postfix, whole-object dereference operators
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2015-07-07 06:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls