Hi Peter
I tried this and eyeballing it I can tell that there are no differences (a very
small program).
Bill
Peter Prymmer wrote:
> On Thu, 13 Jul 2000, William Raffloer wrote:
>
> > Peter
> >
> > We have another mystery on our hands, there I ported the Perl5.005_03 as we
> > had gone over, I really can't understand why the CGI.pm Font and color are not
> > showing up the way they used to (it was working on one system in
> > perl5.004_03), very weird.
>
> To be absolutely sure they are the same try running the script with
> appropriate environment variable and/or command line arguments:
>
> cd cgi-bin
> (CGI_EB=foo && perl perlcgi.pl arg1 arg2 | tee file.log 2&>1)
>
> on both systems. Take file.log from one system over to the other
> system and rename it file.log.other system then run the command:
>
> diff -c file.log.other file.log
>
> and examine what the test output difference is. If there is absolutely no
> difference then I would suspect a perl permission and/or ownership problem
> difference between the systems.
>
> On the one system where the script worked as you wanted it to under
> 5.004_03 try this:
>
> cd cgi-bin
> (CGI_EB=foo && /usr/local/bin/perl perlcgi.pl arg1 arg2 | tee file.log
> 2&>1)
>
> and compare that output to the output from the other invokation (assuming
> that the full path to your 5.004_03 binary is /usr/local/bin/perl ).
>
> Using diff ought to eliminate the possibilty of extraneous control
> characters or any output difference at all, hopefully better than just
> trying to do it by eye (apologies if you already followed this approach).
>
> > I tested the the perlcgi.pl on both systems (working cgi.pm system and
> > nonworking cgi.pm system) and achived the same results, they worked as shell
> > scripts in both places. I had to issue a ctrl-d twice and saw the same output
> > on both systems (header record and the body of the HTLM icluding the tags).
> >
> > The only thing I can think of is instaead of moving the HFS files I should
> > have rebuilt it on the system.
>
> check the output from:
>
> cd cgi-bin
> ls -l perlcgi.pl
>
> between the two systems: ownership? permissions?
>
> > Unless it is a webserber issue, but that does not make sense because perl
> > works as a cgi scripting tool (just not the CGI.pm stuff on the newly moved
> > systems).
>
> That is you have verified that a simple perl+CGI.pm script that does use
> CGI and print_header() end_html() works identically on both systems and
> you are only seeing a difference with the font and color stuff? Are you
> using exactly the same browser to view both systems?
>
> Peter Prymmer