Help for this page

Select Code to Download


  1. or download this
    while (<>) {
        chomp;
    ...
        local @ARGV = @_;
        join '', <>;
    }
    
  2. or download this
    ls | perl ../perlmonks.pl
    
  3. or download this
    file2
    line1file1
    line2file1
    
  4. or download this
    print collect( 'file1' );
    print collect( 'file2' );
    
  5. or download this
    line1file1
    line2file1
    line1file2
    line2file2