my $fullpath = 'C:\foo\bar\baz'; #### print $dirname;