```{index} single: dir_dirname; File::Temp function ``` ```{index} single: File::Temp::dir_dirname; Perl function ``` # dir_dirname Return the on-disk path for a `File::Temp::Dir` object. ## Synopsis ```perl my $path = $dir->dirname; ``` ## What you get back The directory pathname as a string, or `undef` if called on something that is not a `File::Temp::Dir`. ## Examples ```perl my $dir = File::Temp->newdir; my $p = $dir->dirname; # same as "$dir" ``` ## Differences from upstream Fully compatible with upstream `File::Temp` 0.2312. ## See also - `File::Temp->newdir` — constructor that returns objects answering this method. - `filename` — the analogous accessor on `File::Temp`.