in reply to my compiled perl script is waiting for input

The statement   my $command = qq(copy "$source1" "$dest1") or die "Couldn't copy $source1: $!"; isn't doing what you appear to think it is. Try qx() instead of qq()

Replies are listed 'Best First'.
(tye)Re: my compiled perl script is waiting for input
by tye (Sage) on Aug 23, 2001 at 22:50 UTC

    qx() won't do what he wants either. He just needs to move the "or die" part down a few lines so that it is after the call to system and change it to "and die" since system is about the only Perl routine that return a false value for success.

            - tye (but my friends call me "Tye")