- or download this
if ($file = glob(($base)."*.txt")){
# ...
}
- or download this
#!/usr/bin/perl
use strict;
...
foreach my $file ( glob qq($base/*.txt) ) {
File::Copy::move $file, $dir_for_today or warn "Can't move $file
+ to $dir_for_today : $!";
}
- or download this
#!/usr/bin/perl
use strict;
...
foreach my $file ( glob File::Spec->catfile( $base, '*.txt' ) ) {
File::Copy::move $file, $dir_for_today or warn "Can't move $file
+ to $dir_for_today : $!";
}
- or download this
#!/usr/bin/perl
use strict;
...
foreach my $file ( glob File::Spec->catfile( source( \%config ), '*' .
+ extension( \%config ) ) ) {
File::Copy::move $file, $destination or warn "Can't move $file t
+o $destination : $!";
}
- or download this
#!/usr/bin/perl
use strict;
...
print STDERR Mover->new()->move()->warnings();