in reply to re-calling called functions
Do you want to recall checkPackage so you get another chance to call opendir? Instead of gymnastics, just change checkPackage to check for the directory before it tries to open it. That way you don't have to re-dispatch to the calling method.
$Utils->DIRUtil( ... ) unless -d $dir; opendir( ... );
|
|---|