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

Rx-0.53/dump_regexes.pl as a module

by Anonymous Monk
on Apr 21, 2012 at 10:17 UTC ( #966333=perlquestion: print w/replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

What I'm looking for is to get at the hash structure described in Rx: A Regex Debugger for Perl, it is the hash version of this printout

$ perl -Mre=debug -e " /larry.wall+!/ " Compiling REx "larry.wall+!" Final program: 1: EXACT <larry> (4) 4: REG_ANY (5) 5: EXACT <wal> (7) 7: PLUS (10) 8: EXACT <l> (0) 10: EXACT <!> (12) 12: END (0) anchored "larry" at 0 floating "l!" at 9..2147483647 (checking anchore +d) minlen 11 Freeing REx: "larry.wall+!"

Rx-0.53/dump_regexes.pl requires recompiling perl (and I haven't tried it yet), so any options besides parsing the output of re=debug ?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://966333]
Approved by marto
help
Chatterbox?
[GotToBTru]: you probably have the problem firmly fixed in your mind. question is .. when you come back to this in 6 months time, will it still be as clear
[ambrus]: if you have such a deep data structure, and you have trouble dereferencing it, then you should probably think through whether that's really the best data structure you should use
[choroba]: $aohoaoh[0]{foo}[0 ]{bar} was my suggestion

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (12)
As of 2016-12-06 14:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (105 votes). Check out past polls.