Help for this page

Select Code to Download


  1. or download this
    my %fragment_exists;
    sanitize_name(sub {map { $_ . "_" . $fragment_exists{ $_  }++} @_ },
                  $title, ...);
    
  2. or download this
    my %fragment_exists;
    
    ...
    do {
        $fragment = sanitize_name( "$title_" . $duplicate++ );
    while( $fragment_exists{ $fragment }++ );