Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Declaring my $var versus declaring my($var)

by chromatic (Archbishop)
on Jun 10, 2011 at 18:11 UTC ( [id://909178]=note: print w/replies, xml ) Need Help??


in reply to Declaring my $var versus declaring my($var)

I'm wondering if I've been making the parser work extra hard...

Yes, but the practical effect is irrelevant. I doubt you can even measure it to any degree of accuracy.

Apart from deliberate grouping or context enforcing behavior, the only reason to use parentheses is to produce clarity for human readers. The parser has to do much more work figuring out other constructs anyhow.

  • Comment on Re: Declaring my $var versus declaring my($var)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2026-04-13 11:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.