in reply to FILE::PATH question

Perhaps you're using the wrong File::Path. What is the output of the following:

use strict; use warnings; use File::Path; use Data::Dumper; warn File::Path->VERSION; warn Dumper \%INC;

Update: note that make_path and remove_tree are available only since File::Path version 2.07

Replies are listed 'Best First'.
Re^2: FILE::PATH question
by AnomalousMonk (Archbishop) on Jan 05, 2010 at 18:54 UTC

    From File::Path VERSION 2.08, the SYNOPSIS section:

    # legacy (interface promoted before v2.00) mkpath('/foo/bar/baz'); mkpath('/foo/bar/baz', 1, 0711); mkpath(['/foo/bar/baz', 'blurfl/quux'], 1, 0711); rmtree('foo/bar/baz', 1, 1); rmtree(['foo/bar/baz', 'blurfl/quux'], 1, 1); # legacy (interface promoted before v2.06) mkpath('foo/bar/baz', '/zug/zwang', { verbose => 1, mode => 0711 + }); rmtree('foo/bar/baz', '/zug/zwang', { verbose => 1, mode => 0711 + });