Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Nice work! It’s always nice to see people play with their symbol tables. Been a while since I’ve had to explain perl4’s pass-by-name semantics using *x parameters to anybody. Ah, but I see you’ve used a lexical $x, which sidesteps that issue. Commented Nov 5, 2010 at 3:39
  • Thanks Tom, I originally used positional parameters before realising I could keep the recursion count in a lexical and add another meaning for 'x' to the script. Wish I could have removed the map (even if it is just a glorified 'if')... Commented Nov 5, 2010 at 11:07