Help for this page

Select Code to Download


  1. or download this
    open(Input, '+<…') || die "No such file found!";
    
  2. or download this
    open my $input, '+<', 'file...';
    
  3. or download this
    perl script.pl > output.txt
    
  4. or download this
    open STDOUT, '>', 'output.txt' or die $!
    
  5. or download this
    perl first.pl | perl second.pl
    
  6. or download this
    while (my $line = <STDIN>) { ... }