in reply to Re: Re: How to use options in Perl shell?
in thread How to use options in Perl shell?
The version of Shell I just downloaded (v0.4) requires you to import the commands you want to use on the use line which you don't show in your example.
use Shell qw[xcopy dir];
Other than that, the other problem I encountered was that if the command prompts for any reason, then then the script just sits there waiting for input--could that be your problem?
Many of the commands have a "shut up and do it" switch (/I will stop XCOPY prompting "Is the destination a file or directory" etc.)
print xcopy '/S', 'c:\test\junk*', 't:';
|
|---|