S
stew dean
(e-mail address removed) (stew dean) wrote:
: > On 23 Oct 2003 02:22:26 -0700, (e-mail address removed) (stew
: > dean) wrote:
: >
: > >> > I've never run a perl script at the command line.
: > >>
: > >> Why not?
: > >
: > >Because I've never had to. Why would I want to?
: >
: > I've been hovering over whether to killfile you for
: > cluelessness or not. You have removed all doubt.
:
: Oi idiot - why didnt you answer the question?
Probably because you've demonstrated remarkable obstinacy in taking
advice. Talking to a wall gets old fast.
: You don't need to use the command line to write perl scripts. If all
: the errors I needed appeared in the browser I would never ever have to
: go near the command line to write perl.
Isn't the root of the problem that nothing at all is being displayed in
the browser?
: There are some real arrogant arseholes around here.
Problem diagnosis is a process, and so far you have refused to
participate in the process. You seem to want somebody to magically know
what's wrong and say "this is the problem, here is how to fix it."
The arseholes have been sharing solid advice on how to find where the
difficulty lies, often repeating what others have already said.
Here's a recap of those advices:
1. Look at the server's error log.
Not applicable.
2. Post a short sample script that demonstrates the
problem.
Not applicable - no errors - no sample script.
3. Ask for help in a CGI-related or IIS-related
newsgroup.
Only well into the debate. I'm suprised someone didnt pipe up 'read
the FAQ' then plonked me when I asked which FAQ.
4. Run the script from a command prompt so you can see
errors and warnings as they happen.
This is the bit of advice I followed and it worked, only after I got
shit for asking why I should use the command line.
5. use CGI::Carp qw(fatalsToBrowser warningsToBrowser);
No difference in output to normal.
6. see "perldoc -q 500"
This came up late in the discussion. It's essential RTFM. In this case
the manual is of no use. It did tell me I would have been better off
in a CGI newsgroup and you lot get a bit shirty around here - guess I
know that now. Some of you guys really need to chill out.
Think of it this way - if I never used the command line before (except
to install modules) then why would I know what perldoc means? I would
have used perl.org and like I did in this case and not have found the
answer as I get burried in unrelevent material.
There's no evidence you've tried any of those things. Your only
response to each arsehole has been "the script works."
Because the script outputs no errors in the browser. Using the command
line - as I've stated before, it gave me the errors. This allowed me
to fix the script. Now I want the errors that showed up in the command
line to display in the browser as at the moment I have to maintain two
scripts - one with relative links and one absolute. There is a
problem.
Until you get past the assumption that there's nothing wrong with the
program and start trying some of the things people have suggested, there
is nothing left to do.
Because most of the things suggested have not helped. Yes the headers
are correct, no there are no syntax errors, yes the files are inputing
and outputting correctly.
The problem WAS with the script but if I'd posted code up you wouldnt
have seen it without me supplying the XML file. I don't think anyone
here wanted a 40 page message.
I was after finding out how to get to my errors. After someone had
told me I'll get a list of errors by using the command line this is
what I did. And it worked. Until someone mentioned that I couldnt
follow the advice.
Some have their own ways of working and often it is suggested to use x
or y solution because that is how they do it - not because it will
give me any more answers. Now I know that the command line gives me
errors not seen in the browser - and I want these errors to show up in
the browser.
Stew Dean