Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^8: $1 not "freezing" in an addition

by chromatic (Archbishop)
on Dec 15, 2012 at 20:25 UTC ( #1009006=note: print w/ replies, xml ) Need Help??


in reply to Re^7: $1 not "freezing" in an addition
in thread $1 not "freezing" in an addition

Doesn't stop perlcritic from doing the descending, or running B::Xref

How is P::C to descend into code that's not loaded until runtime?

descending into XS is not insurmountable either

How is P::C to descend into compiled code that's not loaded until runtime and for which the source code is not available?

IMHO it seems like a very safe low level warning for every $global ... func to be turned into "$global" ... func , esp for $1

How do you know you've caught every global? How do you know stringification is desirable?


Comment on Re^8: $1 not "freezing" in an addition
Re^9: $1 not "freezing" in an addition
by Anonymous Monk on Dec 16, 2012 at 01:18 UTC

    How is P::C to descend into code that's not loaded until runtime?

    It could, wait for it, load the code

    do the scandeps dance

    not do anything at all

     

    How is P::C to descend into compiled code that's not loaded until runtime and for which the source code is not available?

    Who said P::C is supposed to do it ?

    How do you know you've caught every global? How do you know stringification is desirable?

    Clearly stringification of $1 is undesireable -- I am humbled by your logic

      If your answer to "How is Perl::Critic to do this thing?" is "Magic", then I'd very much like to see your implementation.

      Clearly stringification of $1 is undesireable...

      Giving the wrong answer sometimes is undesirable. Giving the wrong warning doubly so.

        If your answer to "How is Perl::Critic to do this thing?" is "Magic", then I'd very much like to see your implementation.

        Do what?

        Giving the wrong answer sometimes is undesirable. Giving the wrong warning doubly so.

        Gee, if only perlcritic had some way to differentiate levels of warnings ... no, it must always be 100% perfect

        Hei chromatic,

        apply some magic and better ignore this anonymous troll! =)

        cheers Rolf

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (11)
As of 2014-10-22 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (114 votes), past polls