my $end = substr($string, rindex( $string, '/')+1 );