good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Count number of lines?by CheeseLord (Deacon) |
on Jun 20, 2001 at 06:44 UTC ( [id://89898]=note: print w/replies, xml ) | Need Help?? |
Well, I'm not exactly one to ask about Perl and CGI (as I haven't done very much of it), but if you've got Perl down reasonably well, I'd suggest looking at "CGI Programming with Perl" from O'Reilly. It helped me out a good deal with the little I've done. If you're still working with Perl, I'd recommend getting that down first -- in which case, there's always the Camel (and/or Llama) book. And about your number of lines question:
I don't know if there's a way to determine the number of lines in a file without reading the entire thing... you might also want to look up perlvar and check out $., as that likely has the "cooler" way to accomplish that task. Hope that helps! His Royal Cheeziness
In Section
Seekers of Perl Wisdom
|
|