in reply to Copy dir with space
The Below code does not work.
Yes, it doesn't compile for me either :) This does compile
#!/usr/bin/perl -- use strict; use warnings; use Path::Tiny qw/ path cwd /; my @files = grep { -f $_ } path( '/pr/perl_by_example/' )->children(); for my $source ( @files ) { my $destination = path( "/pr/book/", $source->basename ); $source->copy( $destination ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Copy dir with space (Path::Tiny)
by adriang (Sexton) on Jul 10, 2014 at 10:41 UTC | |
by Anonymous Monk on Jul 10, 2014 at 11:18 UTC | |
by adriang (Sexton) on Jul 10, 2014 at 11:23 UTC | |
by marto (Cardinal) on Jul 10, 2014 at 11:37 UTC | |
by Anonymous Monk on Jul 10, 2014 at 11:36 UTC | |
|
Re^2: Copy dir with space (Path::Tiny)
by McA (Priest) on Jul 10, 2014 at 13:02 UTC |