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

Re^4: Challenge: Perl 5: lazy sameFinge()?

by Laurent_R (Canon)
on Jun 30, 2013 at 14:58 UTC ( [id://1041602]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Challenge: Perl 5: lazy sameFinge()?
in thread Challenge: Perl 5: lazy sameFringe()?

Don't worry about it, post your solution.

Well, thank you for your answer. After I wrote my previous message, I found that my iterator was not working properly (it worked on my initial test tree, but not on a more complicated tree). I thought I was going to have trouble using a closure, because I don't do that very often, but that turned out to be easy, my problem was to traverse properly the tree without doing stupid mistakes: in some cases I did not get all the leaves, in others I got some duplicate leaves. I *think* that I have it right now. I posted my solution below.

  • Comment on Re^4: Challenge: Perl 5: lazy sameFinge()?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-25 10:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found