There are a few things you can do to make it easier for people to answer questions. Remember, making it easy means making it more likely that you will get help
First of all -- have a browse through faq219-2884 which is hints, tips and a couple of rules about using Tek-Tips in general.
Second....
Make sure you:
[ol]
[li]Include these two lines as the first lines in your Perl scripts. [tt]
use strict;
use warnings;
[/tt]
[/li]
[li]If you're asking for a module or script that will do a particular job, check out www.cpan.org especially the excellent Search programs.
[/li]
[li]Tell people what version of Perl you are using. The output of "perl -v"; at your command line should tell you that.
[/li]
[li]Include these two lines as the first lines in your Perl scripts. [tt]
use strict;
use warnings;
[/tt]
[/li]
[li]Include some code in your question that demonstrates the problem you're having. Post code that will actually do something if you can please - not just a mind-bogglingly complex fragment us mere mortals won't have a chance of getting to run.
[/li]
[li]Include these two lines as the first lines in your Perl scripts. (did I mention this already?) [tt]
use strict;
use warnings;
[/tt]
[/li]
[li]If you'd like friendlier error message include these two lines as the first lines in your Perl scripts instead.
[tt]
use strict;
use diagnostics;
[/tt]
[/li]
[li]Include some test data please - and say what output you're *expecting*.
[/li]
[li]Be specific; this question:
[color blue]
I'm having a problem getting my really simple script to work.
use strict;
use warnings;
print OUTPUT "Hello World\n";
It just gives me this error message and doesn't print "Hello World"
Error Message:
Name "main::OUTPUT" used only once: possible typo at badhello.pl line 3.
print() on unopened filehandle OUTPUT at badhello.pl line 3.
[/color]
will get a better response than this:
[color blue]
Help! I can't get my script to run, someone help please!
[/color]
You'll notice, by the way, that the use strict etc gives quite helpful error messages, try running that same script without those two lines, it just fails silently. If you 'use diagnostics' instead of 'use warnings' it gives you even more information.
[/li][/ol]
If you're having CGI troubles, have a look at FAQ452-3023.
If you've got any comments, additions, suggestions about this FAQ, please use the "Feedback" mechanism and I'll get back to you.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.