ninja-joe has asked for the wisdom of the Perl Monks concerning the following question:
and it still flags an error. Does this have to do with the print <<END_HTML statements in my code? Or is it a possible problem with my perl installation or something? Here's the code (spill.cgi):if(1) { print "hi"; }
#!/usr/bin/perl use CGI qw/:standard/; import_names('f'); print header(); use AnyDBM_File; use Fcntl; print <<END_HTML <html> <head> <title>DB Spiller</title> </head> <body> <form method="get" action="spill.cgi"> DB Filename: <input name="data" type="text" size=10><br> <input type="submit" value="Dumb DB Contents"> <input name="action" type="hidden" value="spill"> </form> END_HTML if(defined($f::action)) { tie %db, "AnyDBM_File", "$f::data", O_RDWR, 0644; foreach $key (keys(%db)) { print "$key => $db{$key}<br>"; } } print <<END_HTML </body> </html> END_HTML
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Syntax error? I don't think so...
by BeernuT (Pilgrim) on Apr 27, 2002 at 16:54 UTC | |
by ninja-joe (Monk) on Apr 27, 2002 at 16:59 UTC | |
|
Re: Syntax error? I don't think so...
by George_Sherston (Vicar) on Apr 27, 2002 at 18:22 UTC | |
by grep (Monsignor) on Apr 27, 2002 at 19:53 UTC | |
by ninja-joe (Monk) on Apr 29, 2002 at 15:15 UTC | |
by perlknight (Pilgrim) on Apr 29, 2002 at 20:13 UTC | |
by George_Sherston (Vicar) on Apr 30, 2002 at 14:54 UTC | |
|
Re: Syntax error? I don't think so...
by gav^ (Curate) on Apr 27, 2002 at 22:51 UTC |