in reply to Re^2: caller of perl script
in thread caller of perl script
OP mentions both bat and shell, which likely means both Windows and Unix. most of the responses reference Windows. sadly, modules for Windows (e.g. Windows::...) can't be used in Unix.
it's also likely that wild and crazy modules (though we love 'em) may not be an option. OP could be in a locked down environment where they've got to use what they've got.