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:';

Examine what is said, not who speaks.
1) When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong.
2) The only way of discovering the limits of the possible is to venture a little way past them into the impossible
3) Any sufficiently advanced technology is indistinguishable from magic.
Arthur C. Clarke.