Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Use of "my" after Perl v5.14

by marinersk (Chaplain)
on Sep 21, 2012 at 01:10 UTC ( #994797=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Use of "my" after Perl v5.14
in thread Use of "my" after Perl v5.14

I didn't get an error. But then I am not using v5.14.


Comment on Re^3: Use of "my" after Perl v5.14
Re^4: Use of "my" after Perl v5.14
by AnomalousMonk (Abbot) on Sep 21, 2012 at 09:19 UTC
    I didn't get an error. But then I am not using v5.14.

    You're also not using warnings, which would have made Perl complain about "Use of uninitialized value $t2::TRUE in concatenation (.) or string at t3.pl line 7" (line 7 in my altered file) regardless of Perl version. Note also that
        print " my:  \$t2::TRUE        = '$t2::TRUE'\n";
    prints
        my:  $t2::TRUE        = ''
    (empty single-quotes instead of '1') with or without warnings.

    Update: Upon re-reading your post, it occurs to me that your intention may have been to point up the fact that the value of the lexical  $TRUE defined in the  .pm file is not visible in the  .pl file ("Pay attention to the value of $TRUE in the sample..."). If so, I offer my own apologies! (In any event, the use of warnings remains a valuable, albeit implicit, recommendation.)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2014-10-22 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (122 votes), past polls