Help for this page

Select Code to Download


  1. or download this
    #!/bin/perl
    
    ...
    print "After\n";              # after "After" nothing happens but file
    + closing.
    
    close($in_file);
    
  2. or download this
    #!/bin/perl
    
    ...
    }
    
    close($in_file);
    
  3. or download this
    #!/bin/perl -l -pi.bak
    
    ...
        $_ .= "Friday";                     # add "Friday" (and line endin
    +g via -l)
        warn "added 'Friday' to line $.\n"; # warn doesn't add line ending
    + via -l
    }