
KevinR
Veteran

Sep 28, 2003, 9:51 PM
Views: 2621
|
|
Re: [diemaker] General Q about regex matches VI vs. Perl
|
|
|
this should work to do what you want for a text file: open (FILE, "path/to/your/text_file"); $count = 0; while ( <FILE>) { $count++ if (/\w\n/); } close (FILE); print $count; and with that I bid you good luck and goodnight -------------------------------------------------
(This post was edited by KevinR on Sep 28, 2003, 9:54 PM)
|