http://qs321.pair.com?node_id=381398


in reply to Re: using a subroutine
in thread using a subroutine

Oops you're correct. Using
 push @tmps,readdirs(DIRS)
didn't delete the tmp files either.
Back to the drawing board...