Help for this page

Select Code to Download


  1. or download this
    $ cat file.txt | perl -ne '(1..10)&&print'
    
  2. or download this
    #!/usr/bin/perl
    my $counter;
    ...
      print if ($counter++ < 10);
    }
    close A;