in reply to File Test help with -M (modification age)

$fullname = $dir . $file . "\\";

are you sure you don't mean

$fullname = $dir . '\\' . $file;

~Particle *accelerates*

Replies are listed 'Best First'.
Re: Re: File Test help with -M (modification age)
by psychoto (Novice) on Dec 12, 2002 at 02:41 UTC
    I've already added a \ after dir using this statement if one does not exist....
    unless($dirname =~ /\\$/){ $dirname .= "\\"; }
    so by doing
    $fullname = $dir.$file."\\";
    I just continue to build the path to the file with the trailing '\'