Two Questions Please

Sander van Zoest sander at mp3.com
Fri Feb 4 22:41:33 CST 2000


~sdpm~
On Fri, 4 Feb 2000, Joel Fentin wrote:

> If I have a statement like: 
> $Adr[1] = 3. 
> And later another statement in a different function like:
> print @Adr;
> It prints it correctly but I get a message:
> "Use of uninitialized value......"
> 
> So, at the start of the program I have tried:
> use vars qw(@Adr);
> local @Adr;
> my @Adr;
> The message stays. What does it want?

This means that the variable your are looking for isn't in scope.
I'd need to see more of the code to see what the problem is.
  
> =============================
> Second question:
> I am running my programs on a laptop with Windoz using Apache
> server on IE-5. The program starts with an HTM file. When the
> submit button is pressed (and all is ok) it runs my CGI program.
> When all is not ok, I get a file download box. "You have chosen
> to download a file from this location...."
> 
> What kind of problem should I go looking for inside the CGI
> program?

This means that you are not sending the appropriate Content-Type header.
Put this before you output anything. (I do not know what language, so
I am assuming C)

printf("Content-Type: %s\r\n", "text/html");
printf("\r\n");

Hope that helps,

- 
Sander van Zoest                                             sander at mp3.com   
High Geek                                                    (858) 623-7442
MP3.com, Inc.  						http://www.mp3.com/
		Your premiere Music Service Provider (MSP) 

~sdpm~

The posting address is: san-diego-pm-list at hfb.pm.org

List requests should be sent to: majordomo at hfb.pm.org

If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at happyfunball.pm.org> with the following
command in the body of your email message:

    unsubscribe san-diego-pm-list

If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
This is the general rule for most mailing lists when you need
to contact a human.




More information about the San-Diego-pm mailing list