Help for this page

Select Code to Download


  1. or download this
    my $string = "///a/b////c";
    
    my @arr = grep {$_ ne ''} split("\/+",$string);
    
    print ":" , join("_",@arr) , ":\n";
    
  2. or download this
    my $string = "//foo//bar///";