in reply to Why does Modern::Perl hate CGI.pm || my simple form?

Modern::Perl means strict. Under strict, every variable must be declared. $input is not declared. See also my.

Update: Try also diagnostics or splain:

$ echo 'Global symbol "$input" requires explicit package name at -e li +ne 1.' | splain Global symbol "$input" requires explicit package name at -e line 1 (#1 +) (F) You've said "use strict" or "use strict vars", which indicates + that all variables must either be lexically scoped (using "my" or +"state"), declared beforehand using "our", or explicitly qualified to say which package the global variable is in (using "::").
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^2: Why does Modern::Perl hate CGI.pm || my simple form?
by taint (Chaplain) on Nov 05, 2013 at 23:38 UTC
    Greetings, and thank you for taking the time to respond.
    Good advise -- I'll take it!

    Thanks again.

    --Chris

    #!/usr/bin/perl -Tw
    use perl::always;
    my $perl_version = (5.12.5);
    print $perl_version;