Help for this page

Select Code to Download


  1. or download this
    if ($file = glob(($base)."*.txt")){
       # ...
    }
    
  2. 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 : $!";
    }
    
  3. 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 : $!";
    }
    
  4. 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 : $!";
    }
    
  5. or download this
    #!/usr/bin/perl
    use strict;
    ...
    
    print STDERR Mover->new()->move()->warnings();