Help for this page

Select Code to Download


  1. or download this
    my $stuff='one, two, , three, four'; #empty element between two and th
    +ree
    my @arr=split(/, /, $stuff); #split on space comma
    
  2. or download this
    my @arr=split(/\s/, 'one two  three four'); #same effect as above