Help for this page

Select Code to Download


  1. or download this
    my ($base, $ext) = split '.', $filename, 2;
    
  2. or download this
    my ($base, $ext) = map { reverse } split '.', reverse($filename), 2;