Re: Modules inter-relay ?

2006-12-03 Thread Mug
Bill Jones wrote: > On 12/4/06, Mug <[EMAIL PROTECTED]> wrote: > >> Say I have 2 modules ( below pseudo codes ) , which the first >> package ( InitGlobal ) will be used through out the other project >> modules. However, InitGlobal itself would relay on some other >> modules, which the modules using

Re: Modules inter-relay ?

2006-12-03 Thread Bill Jones
On 12/4/06, Mug <[EMAIL PROTECTED]> wrote: Say I have 2 modules ( below pseudo codes ) , which the first package ( InitGlobal ) will be used through out the other project modules. However, InitGlobal itself would relay on some other modules, which the modules using InitGlobal too. You can pla

Modules inter-relay ?

2006-12-03 Thread Mug
Hi all, Say I have 2 modules ( below pseudo codes ) , which the first package ( InitGlobal ) will be used through out the other project modules. However, InitGlobal itself would relay on some other modules, which the modules using InitGlobal too. This sometimes caused some weir problem, or perhap

Re: Checking for infinite loops

2006-12-03 Thread Bill Jones
On 12/2/06, hOURS <[EMAIL PROTECTED]> wrote: But I think we can ignore all those questions, because I don't see a need to work with this example. I'm just looking for someone to tell me how alarm works. A few sentences in English will be fine. No code really need be written. Old multi pro

Re: goto return ?

2006-12-03 Thread Bill Jones
On 11/24/06, JupiterHost.Net <[EMAIL PROTECTED]> wrote: The trick is I can't seem to goto() return in do_some_stuff_and_return(), I'm sure since its so deep down... I guess I'm totally confused; I don't see how a goto can return back to the sub-rotine that called it: #! perl -w use strict;

Re: Out of memory!, while extending scalar with vec()

2006-12-03 Thread Tom Phoenix
On 12/3/06, kyle cronan <[EMAIL PROTECTED]> wrote: I have plenty of virtual memory, so there's no reason a malloc would fail that I can think of. Should I submit this with perlbug? Yes. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: Out of memory!, while extending scalar with vec()

2006-12-03 Thread kyle cronan
On 12/3/06, Bill Jones <[EMAIL PROTECTED]> wrote: On 12/3/06, kyle cronan <[EMAIL PROTECTED]> wrote: > (1<<$ARGV[0]) Just a thought - The argument you are passing is really the two's complement; so you are really passing 256M (not 28) to the vec statement. So what you're saying is I should be

Re: Checking for infinite loops

2006-12-03 Thread D. Bolliger
hOURS am Sonntag, 3. Dezember 2006 03:25: > "D. Bolliger" <[EMAIL PROTECTED]> wrote: hOURS am Donnerstag, 30. November 2006 21:09: > > Jen Spinney wrote: On 11/20/06, hOURS wrote: > > > Recently I posed a question on here regarding a program I have that > > > runs other programs (through requ

Re: goto return ?

2006-12-03 Thread Peter Scott
On Mon, 27 Nov 2006 14:37:42 -0600, JupiterHost.Net wrote: > basically I want to override return to log and carp first, every time > its called. Oh. You want http://search.cpan.org/dist/Hook-LexWrap/lib/Hook/LexWrap.pm or some similar AOP module. -- Peter Scott http://www.perlmedic.com/ http:/

Re: Help with WWW::Mechanize - Next Question

2006-12-03 Thread Mathew
Rob Dixon wrote: > Mathew Snyder wrote: >> With all the help I've received I've been able to get this working. >> This is my >> text: >> #!/usr/bin/perl >> >> use warnings; >> use strict; >> use WWW::Mechanize; >> use HTML::TokeParser; >> >> my $username = 'msnyder'; >> my $password = 'xxx'; >

Re: Out of memory!, while extending scalar with vec()

2006-12-03 Thread Bill Jones
On 12/3/06, kyle cronan <[EMAIL PROTECTED]> wrote: (1<<$ARGV[0]) Just a thought - The argument you are passing is really the two's complement; so you are really passing 256M (not 28) to the vec statement. -- WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ -- To unsubscribe,

Re: Help with WWW::Mechanize - Next Question

2006-12-03 Thread Rob Dixon
Mathew Snyder wrote: With all the help I've received I've been able to get this working. This is my text: #!/usr/bin/perl use warnings; use strict; use WWW::Mechanize; use HTML::TokeParser; my $username = 'msnyder'; my $password = 'xxx'; my $status = 'open'; my $agent = WWW::Mechanize->

Out of memory!, while extending scalar with vec()

2006-12-03 Thread kyle cronan
Hi, I was wondering if anyone can help me figure out a problem having to do with accessing a scalar variable with vec().. it's illustrated by this little test program: #!/usr/bin/perl my $foo = ''; vec($foo, (1<<$ARGV[0])-1, 8)=1; I can run this with the argument 27, and it works just fine. Pe