Help for this page

Select Code to Download


  1. or download this
    use File::Basename;
    my $dirname = dirname ("lib/this/that/other.txt");
    
  2. or download this
    ($path, $filename) = $fullpath =~ m/^(.*[/\\])([^/\\]+)/;