Help for this page

Select Code to Download


  1. or download this
        @chunks = do {local $" = "|"; split "@array" => $str};
    
  2. or download this
        sub mysplit (\@;@) {
            local $" = "|";
            split "@{+shift}" => @_;
        }
        @chunks = mysplit @array => $str;