in reply to prove, Test::More and path

This is how I do it...

use Test::More tests => 2; use File::Spec::Functions qw( splitdir catfile ); my @dirs = splitdir( $0 ); pop( @dirs ); # remove the filename my $data_file = catfile( @dirs, 'file1.xml' );

By basing the path off of $0, it's always relative to the test itself.


We're not surrounded, we're in a target-rich environment!