fork download
  1. #!/usr/bin/perl
  2.  
  3. print "content-type: text/html \n\n"; #HTTP HEADER
  4.  
  5. # DEFINED STRINGS
  6. $astring = "Rain-Drops-On-Roses-And-Whiskers-On-Kittens";
  7. $namelist = "Larry,David,Roger,Ken,Michael,Tom";
  8.  
  9. # STRINGS ARE NOW ARRAYS
  10. @array = split('-',$astring);
  11. @names = split(',',$namelist);
  12.  
  13. # PRINT THE NEW ARRAYS
  14. print @array."<br />";
  15. print "@names";;
Success #stdin #stdout 0s 4596KB
stdin
Standard input is empty
stdout
content-type: text/html 

8<br />Larry David Roger Ken Michael Tom