Help for this page

Select Code to Download


  1. or download this
      # get the base name of the path.
      $path =~ m~^[\w/]+/(\w+)$~;
      $basename = $1;
    
  2. or download this
      $basename = basename($path);