Help for this page

Select Code to Download


  1. or download this
      my @words = split /,/, $string;
    
  2. or download this
      # find out information about the entire array
      print "found " . scalar( @words ) . " words\n";
    
      # do stuff with each member of the array
      foreach my $word ( @words ) { print "  word: $word\n"; }