RickNak has asked for the wisdom of the Perl Monks concerning the following question:
While I've worked with Perl for a number of years, I just never had need to use File::Copy. When I tried, however, I came up short trying to copy with an asterisk for a wildcard.
#!/usr/bin/perl -w # use diagnostics; use strict; use warnings; use File::Copy; # copy("*.txt", "DIR1"); copy("one.txt", "DIR2")
What am I doing wrong? DIR1 is empty, and DIR2 has the one file.
Rick
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: File::Copy and wildcards
by stevieb (Canon) on Dec 11, 2019 at 05:13 UTC | |
|
Re: File::Copy and wildcards
by swl (Prior) on Dec 11, 2019 at 04:13 UTC | |
|
Re: File::Copy and wildcards
by eyepopslikeamosquito (Archbishop) on Dec 11, 2019 at 10:46 UTC | |
by haukex (Archbishop) on Dec 11, 2019 at 17:36 UTC | |
|
Re: File::Copy and wildcards
by tybalt89 (Monsignor) on Dec 11, 2019 at 14:50 UTC | |
|
Re: File::Copy and wildcards ( Path::Tiny )
by Anonymous Monk on Dec 11, 2019 at 06:17 UTC |