Help for this page

Select Code to Download


  1. or download this
    perl -ne "$. ==1 and print;" filename.txt
    
  2. or download this
    perl -e "print scalar <>;" filename.txt
    
  3. or download this
    perl -ne "print and last;" filename.txt
    
  4. or download this
    perl -ne "last; END{print}" filename.txt
    
  5. or download this
    perl -ne "die $_;" filename.txt
    
  6. or download this
    perl -pe "$. > 1 and last;" filename.txt