in reply to CGI/JSON and explicit package names.

You have:

if ( my $lparnmame = $cgi->param('lparname')) { if ( $lparname eq "") { $errors{'lparname'}='Lparname is required'; } }

Note my $lparnmame later used as $lparname

Update: slightly cleaned up version:

if ( my $lparname = $cgi->param('lparname') ){ if ( $lparname eq " " ){ $errors{'lparname'}='Lparname is required'; } }

Replies are listed 'Best First'.
Re^2: CGI/JSON and explicit package names.
by Athanasius (Archbishop) on Jul 14, 2015 at 14:29 UTC

    Exactly. And that’s why the OP’s inclusion of use strict — which the monks are always recommending — is such a good idea:

    Let the compiler find and flag the typo before the script engenders a runtime debug-fest!

    BTW, hello flynn7312, and welcome to the Monastery!

    Update: Improved wording. Thanks marto.

    Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,