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
In reply to Re: Use CGI to run a Perl script via web server
by kcott
in thread Use CGI to run a Perl script via web server
by suvajit123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |