| File-Slurp-Tree documentation | view source | Contained in the File-Slurp-Tree distribution. |
File::Slurp::Tree - slurp and emit file trees as nested hashes
# (inefficiently) duplicate a file tree from path a to b use File::Slurp::Tree; my $tree = slurp_tree( "path_a" ); spew_tree( "path_b" => $tree );
This module has external dependencies on the following modules:
File::Find::Rule File::Path File::Slurp
perl Build.PL perl Build test
and if all goes well
perl Build install
What changed over the last 3 revisions
Cope with slurp_tree("some_path/") (ie, with a trailing slash) and
slurp_tree("/") (still not really recommended).
Specify binmode in the calls to read_file and write_file - should hopefully fix http://rt.cpan.org/Ticket/Display.html?id=14665 (problem with images on Win32) Drop reference to rt.cpan in L</BUGS>
lose the dependency on Exporter::Simple, which opens us up to 5.6 users. Thanks to Gavin Estey for this work. went one step further and backported to 5.00503. Thank the Northern Line for being slow
Richard Clamp <richardc@unixbeard.net>
Copyright (C) 2003, 2006 Richard Clamp. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| File-Slurp-Tree documentation | view source | Contained in the File-Slurp-Tree distribution. |