Help for this page

Select Code to Download


  1. or download this
    #!\usr\bin perl
    use warnings;
    ...
       say $line;                   # note that your lines already have an
    + end of line, you would probably prefer to use print rather than say
    }
    close $FILE;
    
  2. or download this
    #!\usr\bin perl
    use warnings;
    ...
        print $line;
    }
    close $FILE;
    
  3. or download this
    open my $FILE, "<", "Text2.txt" or die; 
    print while <$FILE>;
    
  4. or download this
    open my $FILE, "<", "Text2.txt" or die; 
    print <$FILE>;