Help for this page

Select Code to Download


  1. or download this
    my $dir = '/home/bla­/public_ht­ml/blabla'­;
    my $isDir = -d $dir;
    ...
    } else {
        print "Can't stat($dir): $!\n";
    }
    
  2. or download this
    use File::Basename 'dirname';
    my $dir = '/home/bla­/public_ht­ml/blabla'­;
    ...
            if  '/' eq $dir;
        $dir = dirname( $dir );
    }