[snipped my numbers formated as 0207 XX]
>Shouldn't these numbers be formatted 020 7XXX
Sh, it's designed to try to fool the sales bunnies.
Rob
> Yup, that's right. So to get it to only have the one call, change your
> "use" to a require and put it in the BEGIN block.
use fred;
Will also call fred->import(), so you might want to emulate that too.
> --
> Robert Price - Technical Manager - EMAP Digital Travel | Tel: 0207 3092711
>
At 03:03 PM 3/8/01 +, you wrote:
>Oh, actually do you mean it is the same at:
>
>pageage LTest;
>
>BEGIN {require Test2}
>BEGIN { warn "." }
>
>print "Here\n"
>
>1;
[snip]
Yup, that's right. So to get it to only have the one call, change your
"use" to a require and put it in the BEGIN bl
Leo Lapworth wrote:
> BEGIN {
You forgot here: warn "In A.D. 2101\n";
> warn "Test is beginning\n";
> }
>
> print "Here\n";
And this should be 'print "What happen?\n";'.
Cheers,
Phi "SCNR" lip
--
Philip Newton <[EMAIL PROTECTED]>
All opinions are my own, not my employer's.
If you're
Oh, actually do you mean it is the same at:
pageage LTest;
BEGIN {require Test2}
BEGIN { warn "." }
print "Here\n"
1;
Ok, that kind'a make sence..
Cheers
Leo <- who is slowly getting there.
On Thu, Mar 08, 2001 at 02:52:48PM +, Leo Lapworth wrote:
> On Thu, Mar 08, 2001 at 02:59:2
At 02:52 PM 3/8/01 +, you wrote:
>On Thu, Mar 08, 2001 at 02:59:27PM +, Robert Price wrote:
>> I think the answer is that both the modules where the BEGINS are called
>> twice have "use" in them. "use" means "BEGIN {require Module}", so BEGIN is
>> being called once when the module is ente
On Thu, Mar 08, 2001 at 02:59:27PM +, Robert Price wrote:
> I think the answer is that both the modules where the BEGINS are called
> twice have "use" in them. "use" means "BEGIN {require Module}", so BEGIN is
> being called once when the module is entered, and once when it is used.
>
> Rob
I think the answer is that both the modules where the BEGINS are called
twice have "use" in them. "use" means "BEGIN {require Module}", so BEGIN is
being called once when the module is entered, and once when it is used.
Rob
At 02:39 PM 3/8/01 +, Leo wrote:
>Hi folks, got an odd one for you
Hi folks, got an odd one for you:
Why is Dprof saying my LTest::BEGIN and mail::BEGIN
are running twice ?
%Time ExclSec CumulS #Calls sec/call Csec/c Name
33.4 0.010 0.010 2 0.0050 0.0050 main::BEGIN<- ?
0.00 0.000 -0.000 1 0. - strict::import
0.00 0.0