in reply to Premature Error using CGI.pm

You forgot the ! in your shebang.
#/user/bin/perl -wT
So it works from the command line when you specify the perl interpreter, but fails via CGI with that incomplete invocation. You need this:
#!/user/bin/perl -wT

It happens =)

Update: If it still doesn't work you have some other more exotic problem. I tested your code and form and it didn't work until ! was added.

Replies are listed 'Best First'.
Re: Re: Premature Error using CGI.pm
by myocom (Deacon) on Feb 24, 2001 at 09:40 UTC

    Just who *did* put the ! in the !#!#!? Let alone the ram in the ramalamadingdong...

    Sorry, it's been a long week...
Re: Re: Premature Error using CGI.pm
by ZydecoSue (Scribe) on Feb 24, 2001 at 09:57 UTC
    Sorry, I mistyped, it's what you'd expect it to be.
    #!/usr/bin/perl -wT

    Any other thoughts?