Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: Importing variables (not functions) from in-file packages

by puterboy (Scribe)
on Feb 12, 2014 at 15:55 UTC ( #1074640=note: print w/replies, xml ) Need Help??


in reply to Re: Importing variables (not functions) from in-file packages
in thread Importing variables (not functions) from in-file packages

Thanks. I hadn't realized (and perhaps still don't fully understand) the difference between compile time vs. run time errors for variables and functions. But now that I think of it, I suppose this is consistent with the fact that variables need to be declared ahead of usage (if using strict) while function definitions can follow their usage.

Is there any analogy to the run-time "BEGIN" to tell the compiler to start (or branch elsewhere)?
  • Comment on Re^2: Importing variables (not functions) from in-file packages

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (1)
As of 2023-06-03 04:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (6 votes). Check out past polls.

    Notices?