Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Why no bareword warnings while inside of BEGIN

by chromatic (Archbishop)
on Mar 22, 2004 at 23:12 UTC ( #338822=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl   
    use strict;
    BEGIN { $x = 'y'; $$x = 1; print $y }
    ...
    Global symbol "$x" requires explicit package name at - line 2.
    Global symbol "$y" requires explicit package name at - line 2.
    BEGIN not safe after errors--compilation aborted at - line 2.
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (14)
As of 2015-07-31 07:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (275 votes), past polls