Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^6: Closure warning with Perl 5.14?

by ikegami (Patriarch)
on May 19, 2011 at 09:55 UTC ( [id://905649]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Closure warning with Perl 5.14?
in thread Closure warning with Perl 5.14?

To allow stuff like the following?

print(my $x = 1234) if COND;

Which is to say, they probably didn't want to step on anything that has remote chance of being legit.

Replies are listed 'Best First'.
Re^7: Closure warning with Perl 5.14?
by JavaFan (Canon) on May 19, 2011 at 10:56 UTC
    But my $x if COND; doesn't warn either, unless COND is false. Not sure what print(my $x = 1234) if 0; would be good for. Note also that print(my $x = 1234) if COND; does not have a my $x = EXPR if COND subexpression, not even on a textual level.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2025-12-11 19:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (92 votes). Check out past polls.

    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.