|Perl Monk, Perl Meditation|
Re: New Monks Info Pageby Odud (Pilgrim)
|on Jun 11, 2001 at 15:17 UTC||Need Help??|
I think I would move points 3 and 4 up to the top of the list - I guess they are what you want anyone to do first. I'm not sure about use diagnostics; versus use warnings; I suppose it all depends on your level.
Has the idea of having an example question and answer been discussed? The question would illustrate all the good practices discussed in the main document e.g. what was trying to be done, what happened, code snippet included, use of HTML tags etc. The answer would show the sort of helpful reply that you get back!
I'm trying to count the number of times a file has a line with "foo" in it. The program looks like this:
But when I run it I get:
Use of uninitialized value in print at ./test.pl line 8, <> line 3.Can someone tell me what's going on?
For the simplest questions perhaps it would be possible to design a form that could be used?