in reply to Re: perl CGI: updating hidden field values for self-referring url
in thread perl CGI: updating hidden field values for self-referring url

To solve "indirect object syntax problems", use
my $q = 'CGI'->new; # my preferred
or
my $q = CGI::->new;

The common CGI->new is still ambiguous.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Replies are listed 'Best First'.
Re^3: perl CGI: updating hidden field values for self-referring url
by Your Mother (Archbishop) on Feb 17, 2014 at 20:13 UTC

    I actually learned that from tobyink awhile back but have had trouble getting used to it as a style… it feels so pedantic, I look over my shoulder to see if anyone was watching whenever I type it. :P

Re^3: perl CGI: updating hidden field values for self-referring url
by Anonymous Monk on Feb 18, 2014 at 00:44 UTC

    To solve "indirect object syntax problems", use

    Don't use single all-caps words as sub names, and you never run into the problem :)