Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use CGI qw(:standard); use CGI::Carp qw( fatalsToBrowser set_message ); my $q = new CGI; print $q->header(); my $msg = escapeHTML( scalar $q->param( 'msg' )) || 'No Msg'; my $error = escapeHTML( scalar $q->param( 'error' )) || ' No error'; my $error_msg = ($msg) ? $msg : ($error) ? $error : ''; print "<br><br>Msgs: $error_msg <br><br>"; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Warnings using -w
by Anonymous Monk on Jun 26, 2017 at 14:14 UTC | |
|
Re: Warnings using -w
by ikegami (Patriarch) on Jun 26, 2017 at 20:11 UTC | |
|
Re: Warnings using -w
by Discipulus (Canon) on Jun 26, 2017 at 14:15 UTC | |
by Anonymous Monk on Jun 26, 2017 at 14:35 UTC |