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
In reply to Re: Count number of lines?
by Zaxo
in thread Count number of lines?
by ginocapelli
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |