in reply to Re: Opening random files then reading random lines from file.
in thread Opening random files then reading random lines from file.
there is no need to know the number of the lines in the file.rand($.) < 1 && ($line = $_) while <>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Opening random files then reading random lines from file.
by brx (Pilgrim) on Apr 27, 2012 at 09:18 UTC | |
|
Re^3: Opening random files then reading random lines from file.
by rovf (Priest) on Apr 30, 2012 at 08:42 UTC |