Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^2: What can we assume in a BEGIN block ?

by leriksen (Curate)
on Oct 04, 2004 at 11:27 UTC ( #396189=note: print w/replies, xml ) Need Help??

in reply to Re: What can we assume in a BEGIN block ?
in thread What can we assume in a BEGIN block ?

OK, I may be focussing too closely here

if it encounters a subroutine or a block called BEGIN while parsing...

what happens to everything it has parsed upto the BEGIN block - does it forget about it till the begin has been completed. The doc says 'parsed' - does that mean entries in the symbol table etc have been made too ?

use brain;

  • Comment on Re^2: What can we assume in a BEGIN block ?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://396189]
[choroba]: No, if there are no threads, then the user wants to use MCE. If there are threads, the user can choose.
[1nickt]: choroba Understood. I'm wondering about the logic in a cpanfile. If the perl doesn't support threads, it's easy: require MCE. If the perl does support threads, as you say the user has a choice, so require both? Or, assume that irrespective of the choide
[1nickt]: ... choice, the threaded-perl user *probably* wants to use threads, therefore only require threads and leave MCE out, allowing the user to manually install if desired?
[choroba]: just require any of MCE and threads. Not sure if that's possible in the cpanfile, but should be possible early in the Makefile
[1nickt]: The app expects threads as default anyway, right?
[choroba]: that's true
[1nickt]: expects threads *to be* the default
[1nickt]: I think cpanfile can handle the logic. testing now.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2017-10-18 13:20 GMT
Find Nodes?
    Voting Booth?
    My fridge is mostly full of:

    Results (244 votes). Check out past polls.