Milleniumlegend
IS-IT--Management
- Dec 16, 2003
- 135
Could you please let me know what is the difference between
Command 1
copy ("$srcbin/$file\.lst)","$binfolder") or print "Copy Failed for $file.lst: $!\n";
Command 2
copy ("$srcbin/$file*)","$binfolder") or print "Copy Failed for $file: $!\n";
I have a basename for the file and try to copy the files to another destination. If I do explicitly define the file extensions it works if I use a wild card like a * it would complain.
Command 1
copy ("$srcbin/$file\.lst)","$binfolder") or print "Copy Failed for $file.lst: $!\n";
Command 2
copy ("$srcbin/$file*)","$binfolder") or print "Copy Failed for $file: $!\n";
I have a basename for the file and try to copy the files to another destination. If I do explicitly define the file extensions it works if I use a wild card like a * it would complain.
Code:
Copy Failed for TEST-SETUP.lst: No such file or directory