in reply to recursing problem

The first thing that I noticed is that you are using bareword dirhandles opendir(DH, $dirtoget) in a recursive subroutine. That is never going to work.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Replies are listed 'Best First'.
Re^2: recursing problem
by dave_the_m (Monsignor) on Apr 20, 2012 at 13:24 UTC
    He's also not using lexical vars. It's never, ever gonna work!

    Dave.

      I wonder if that constitutes an ironic response to my sardonic reply; or a sardonic response to my ironic reply? :)


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

      The start of some sanity?

Re^2: recursing problem
by Anonymous Monk on Apr 20, 2012 at 20:51 UTC
    The OP should read Higher Order Perl -- its first chapter is about recursion, with a specific example on directory walking and it explains why those silly lexical things are needed. And it's even available for free online.