Help for this page

Select Code to Download


  1. or download this
    rand($.) < 1 && ($line = $_) while <FILE>;
    
  2. or download this
    while (<FILE>) {
       my $line = $_;
       chomp($line);    # note, 'chomp' is a safer version of 'chop': see 
    +perldoc -f chomp;
       # do something with $line...
    }