in reply to Count number of lines?
This is actually Not Good Code, but one liners from the prompt are good for getting girls
$ perl -e 'open FH,"users.dat";print scalar(map {1} <FH>)," users to d +ate\n"' 653 users to date $
Properly, the open should be checked and the file closed.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Count number of lines?
by Kanji (Parson) on Jun 20, 2001 at 07:20 UTC | |
by converter (Priest) on Jun 20, 2001 at 08:56 UTC | |
|
Re: Re: Count number of lines?
by mr.nick (Chaplain) on Jun 20, 2001 at 07:22 UTC | |
by larryk (Friar) on Jun 20, 2001 at 12:32 UTC |