develooper Front page | perl.beginners | Postings from March 2002

foreach loop

Thread Next
From:
Mariusz
Date:
March 16, 2002 14:30
Subject:
foreach loop
Message ID:
OE37Sbh29cM3oryKFRJ00005e7f@hotmail.com
I know this foreach loop works (I included print statement within it and it printed out results perfectly). However, for some reason the script doesn't continue after the loop. Am I missing something really obvious?(the print "text here" just doesn't happen?)
Thanks. 
Mariusz


#!/usr/bin/perl -W
use CGI ':standard';

print "Content-type:text/html\n\n";

@names = param();
foreach $name (@names) {
 $$name = param($name);
}
print "text here";
exit;

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About