Good Evening,
Here is some undocumented feature on passing parameters to the subroutines that are fed into the ::Queue:
# queues are created here.....
$command = "dir /b c:\\data\\files";
$commandQueue->enqueue("&shellsub( ' $command ' )");
sub shellsub {
system ( shift );
The important part is to single quote $command to prevent it from being parsed prematurely.
Single quotes garuantee that $command will be evaluated at the right time and processed as you expected.