in reply to Use CGI to run a Perl script via web server
G'day suvajit123,
Welcome to the Monastery.
The code you posted:
#create CGI query object to get the SSO from URL my $sso = new CGI; my $sso = $query->param( "sso" );
Should probably be:
#create CGI query object to get the SSO from URL my $query = new CGI; my $sso = $query->param( "sso" );
You've used strict which would have aborted your script with:
Global symbol "$query" requires explicit package name (did you forget +to declare "my $query"?) at ...
That's probably in your web server logs. Consider using CGI::Carp, while developing, to see these types of messages immediately, with:
use CGI::Carp 'fatalsToBrowser';
You should also turn on warnings. Had you done so, Perl would have given you more help like this:
"my" variable $sso masks earlier declaration in same scope at ...
— Ken
|
|---|