Angharad has asked for the wisdom of the Perl Monks concerning the following question:
Anyway, I've gotten so far, but am stuck on the following. Its a (rather simple) CGI script called from a html form.
When I submit data to the preceding form, this script returns a blank page. And when I try running the script from the command line I get the following error#!/usr/bin/perl use CGI; my $query= new CGI; my $pdb_file = $query->param('pdbcode'); print $query->header(-type => 'text/html'); print $query->start_html(-title => "Secondary Structure Analysis"); MainProgram($pdb_file); $query->end_html( ); ####################################################### # 'main' subroutine sub MainProgram { my($pdb_file) = @_; my $dssp = ".dssp"; my $dsspdir = "http:/mywebsite/datafiles/"; my $pdbcode = substr($pdb_file, 0, 4); my $dssp_file = "$dsspdir$pdbcode$dssp"; print $query->('dssp file used is $dssp_file'); }
Not a CODE reference at ./script.cgi line 45.
Could anyone please suggest as to what might be going on? Any help much appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI script query
by holli (Abbot) on Jun 08, 2005 at 13:43 UTC | |
|
Re: CGI script query
by tlm (Prior) on Jun 08, 2005 at 13:44 UTC | |
|
Re: CGI script query
by cool_jr256 (Acolyte) on Jun 08, 2005 at 13:48 UTC | |
|
Re: CGI script query
by monarch (Priest) on Jun 08, 2005 at 13:43 UTC | |
by tlm (Prior) on Jun 08, 2005 at 13:53 UTC | |
by Angharad (Pilgrim) on Jun 08, 2005 at 14:52 UTC |