Nice Tip!
I'll be using that one in an upcoming program :-) and thus its really good to know that. Jason P. ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Anufriyenko Sent: Wednesday, January 04, 2006 11:58 PM To: perl-win32-gui-users@lists.sourceforge.net Subject: [perl-win32-gui-users] Using Thread::Queue 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. Thanks. Igor.