Re: BEGIN <> BEGIN
- From: "Bob Anastasia" <bob@xxxxxxxxxxxxxxxxxx>
- Date: 31 May 2006 05:41:22 -0700
Ferry Bolhar wrote:
Hi,
I understand that a "use <module> <vars>;" is similar to
BEGIN {>
Are these BEGIN blocks special in some way? Are
require <module>;
<module>->import(<args>);
}
When writing BEGIN blocks myself and looking at the
compiled script with B::Deparse, I can see my BEGIN
blocks, but not the BEGIN blocks created by "use".
these actually BEGIN blocks or just blocks behaving
_similar_ to BEGIN blocks?
Until now, I thought the binary code trees of BEGIN blocks
(and later of CHECK blocks as well) are removed after
they have executed. Is this true? In other words: does a
B::Bytecode-d script still contain BEGIN and CHECK
blocks and are these executed whenever the script starts?
If not, where can I place code I want to be executed
_before_ the main scripts code gets executed? Is it this
what INIT blocks were made for?
MTAI for your answers, and kind greetings from Vienna
Ferry
--
Ing. Ferry Bolhar
Municipality of Vienna, Department 14
A-1010 Vienna / AUSTRIA
E-mail: bol@xxxxxxxxxxxxxxxxx
hrmm......
this doesnt look like perl to me, is this a mod or style i am not
familiar with? this looks more like C or C++
.
- Follow-Ups:
- Re: BEGIN <> BEGIN
- From: Ferry Bolhar
- Re: BEGIN <> BEGIN
- From: Paul Lalli
- Re: BEGIN <> BEGIN
- References:
- BEGIN <> BEGIN
- From: Ferry Bolhar
- BEGIN <> BEGIN
- Prev by Date: Re: basic regex back reference
- Next by Date: FAQ 4.32 How do I strip blank space from the beginning/end of a string?
- Previous by thread: BEGIN <> BEGIN
- Next by thread: Re: BEGIN <> BEGIN
- Index(es):
Relevant Pages
|