Help for this page

Select Code to Download


  1. or download this
    # Save input from STDIN into $file
    my $file = <STDIN>;
    ...
    
    # Print empty array @lines
    print "@lines";
    
  2. or download this
    # Initialize array @lines
    my @lines;
    ...
    
    # Print array @lines after all processing has been done.
    print @lines;