[Melbourne-pm] Wierd CGI Error - different displays for different executers

Sam Brent sambrent at gmail.com
Sun Mar 26 15:57:03 PST 2006


Hehehe, Well I tried to avoid it for as long as possible but I guess I
have no other option, code is attached.

showall is a 777 chmodded script that is run
logon.pm is a module file with functions i commonly use in this project

I have other scripts that also display differently on browsers to
running them in term, but I think if I can understand what's wrong
with this one, I can fix the rest.

Thanks to anyone and everyone for trying/looking.

Sammy.

P.S. Sorry, I don't comment well or often.

On 3/27/06, Jacinta Richardson <jarich at perltraining.com.au> wrote:
> Sam Brent wrote:
>
> > I'm not reading from a file exactly, I'm using LWP to get data from a
> > webpage then reinterpreting that data and printing it on my webpage.
> > I don't think it's a permission problem, i've given chmod 777 to
> > everything including the folder my script is running in and it's still
> > doing the same thing.
> >
> > I think that's what you meant, I'm still learning UNIX so I may be wrong...
> >
> > If anyone else has any ideas I'd love to hear them.
>
> G'day Sammy,
>
> It's really *really* hard to debug someone's Perl problem without access to any
> code.  Is it possible for you to condense your code down to something like:
>
>         #!/usr/bin/perl -w
>         use strict;
>         use LWP;
>         use CGI;
>
>         # setup LWP just as you do for your script
>         # do stuff with LWP
>
>         my $cgi= CGI->new();
>         print $cgi->headers();
>         print $cgi->h1("a test");       # This prints fine
>
>         # print something from LWP that doesn't work.
>
> Obviously there would be code instead of most of those comments.  You'd then
> make sure that this very small coding example exhibited the issues you are
> having with the program.  Once you then supply this to us, we can have a go at
> duplicating the problem, or at least reading the code to see what you're doing.
>
> Without code, knowledge of your machine and much of the knowledge you have,
> there's next to nothing we can do to help you.
>
> All the best,
>
>         Jacinta
>
> --
>    ("`-''-/").___..--''"`-._          |  Jacinta Richardson         |
>     `6_ 6  )   `-.  (     ).`-.__.`)  |  Perl Training Australia    |
>     (_Y_.)'  ._   )  `._ `. ``-..-'   |      +61 3 9354 6001        |
>   _..`--'_..-_/  /--'_.' ,'           | contact at perltraining.com.au |
>  (il),-''  (li),'  ((!.-'             |   www.perltraining.com.au   |
>
>
>


--
Samuel James Brent
MSN: sammyleephd at hotmail.com
Mobile: 0419201806
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logon.pm
Type: text/x-perl-script
Size: 8993 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/melbourne-pm/attachments/20060326/4c74cd4b/logon.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: showall
Type: application/octet-stream
Size: 2108 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/melbourne-pm/attachments/20060326/4c74cd4b/showall.obj


More information about the Melbourne-pm mailing list