http://www.perlmonks.org?node_id=287740


in reply to Trouble with path syntax

use File::Basename; my $thebase = dirname($file); $thebase = dirname($thebase).'/default' unless -e $file;
--
bm

Replies are listed 'Best First'.
Re: Re: Trouble with path syntax
by diamich (Initiate) on Aug 29, 2003 at 16:39 UTC
    That one did it!!! THANKS EVER SO MUCH!!!! :))