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 ); }
In reply to Re: Copy dir with space (Path::Tiny)
by Anonymous Monk
in thread Copy dir with space
by adriang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |