Help for this page

Select Code to Download


  1. or download this
    $xpath =~ s{/[^/]+$}{};
    
  2. or download this
    my @temp = split('/', $xpath);
    $xpath = join('/',@temp[0..$#temp-1]);
    
  3. or download this
    $xpath = substr($xpath,0,rindex($xpath,'/'));