You have two dollar signs before the 'name' variable in the loop. That probably works 
provided the value of the variable is not a number, but it may be causing the 
strangeness you're experiencing. Always 'use strict' in your scripts. You should be 
storing your params in a hash and doing something like this instead:

my %stuff;
foreach my $name (param())
{
    $stuff{$name} = param($name);
}

Try that instead, perhaps it will solve your problem.

~mark
http://www.workzoo.com/

Mariusz wrote:

> html tags are not the problem. I included another print statement before the loop 
>and that outputs "text 1 here" to the web. However, "text 2 here" doesn't get 
>printed?? I feel stupid since it's only few lines and it looks very simple and ok to 
>me...Can anyone think of a reason why would the script not continue after the loop?
>
> Thanks for all the other tips regarding subject: param.(Gary, Daniel, Tiler, Tanton 
>-thanks!)
>
> #!/usr/bin/perl -W
>
> use CGI ':standard';
>
> print "Content-type:text/html\n\n";
> print "text 1 here";
> @names = param();
> foreach $name (@names) {
>  $$name = param($name);
> }
> print "text 2 here";
> exit;


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to