Help for this page

Select Code to Download


  1. or download this
    open(File, "file.txt");
    while($text = <File>){
    @words = split(' ', $text);
    for $word(@words){
    print "$word\n"}};
    
  2. or download this
    open(S, 'file.txt');
    while($text = <S>){
    ...
    close $fh;
    print "done\n";
    }};