Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: perl CGI: updating hidden field values for self-referring url

by choroba (Cardinal)
on Feb 17, 2014 at 19:54 UTC ( [id://1075211]=note: print w/replies, xml ) Need Help??


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 :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1075211]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-23 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found