Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^5: Generate the perl sequence 1, 11, 111, ....

by blazar (Canon)
on Oct 11, 2008 at 18:20 UTC ( #716630=note: print w/replies, xml ) Need Help??

in reply to Re^4: Generate the perl sequence 1, 11, 111, ....
in thread Generate the perl sequence 1, 11, 111, ....

Or if you're not inclined to read the source, you can examine the match tree:

I personally believe that this would indeed better be the case. Actually, I have eventually obtained an account on feather courtesy of Juerd and I wanted to experiment there. But I'm stuck again: what package is the STD5_dump_match script supposed to be part of, and where can I find it to the point of trying it myself? I presume that it's pugs. But then I expected to find it somewhere in ~audreyt/pugs given that the pugs executable itself on that machine is a link into that directory - however that doesn't seem to be the case. Or it may be a matter of permissions; whatever: any idea?

Sorry for being so dumb: if nothing else I hope this may help some other people out there!

If you can't understand the incipit, then please check the IPB Campaign.

Replies are listed 'Best First'.
Re^6: Generate the perl..- Running
by moritz (Cardinal) on Oct 11, 2008 at 18:46 UTC

    Sorry to the OP for going so far off-topic...

    You need to grab a copy of the pugs repository. In that repo you'll find the directory src/perl6/, in which you can find and STD5_dump_match.

    (If you take somebody else's checkout of the pugs repository please copy the perl6/ folder to your home directory, because you need write accessing for the lex cache).

    In that dir, type make, then you can use perl STD5_dump_match $file to print out a match tree.

    (You need a perl 5.10.0 in /usr/local/perl to run this, along with a few modules like re::engine::TRE, JSON::XS and Moose. I'll try to install all the dependencies on feather now.)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://716630]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2018-01-21 00:08 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (227 votes). Check out past polls.