Help for this page

Select Code to Download


  1. or download this
    sub sprit
    {
        return ( $_[1] =~ /(.*?)(?:$_[0]|$)/g );
    }
    
  2. or download this
    my @pieces = split /(\s+)/, "hello, yes, I can see you need help.";
    print join( ":\n :", "split returned the following pieces", @pieces ),
    + ":\n";