Re: perl OOP problem

2004-04-03 Thread $Bill Luebkert
Rhesa Rozendaal wrote: > Jeremy A wrote: > > >>Hi all, >> >>I have an perl oop problem. >> > > > [snip] > > >>package Machine; > > > Insert this: > > use strict; > use warnings; > > >>sub new() { >&

Re: perl OOP problem

2004-04-03 Thread Rhesa Rozendaal
Jeremy A wrote: Hi all, I have an perl oop problem. [snip] package Machine; Insert this: use strict; use warnings; sub new() { my $invocant = shift; my $class = ref($invocant) || $invocant; $self = { Change that to my $self = { HOSTS => un

perl OOP problem

2004-04-03 Thread Jeremy A
Hi all, I have an perl oop problem. I want to do alternating prints (switching). eg. 192.168.1.101 192.168.1.108 192.168.1.101 192.168.1.108 my problem is it that, it does not alternate. eg 192.168.1.108 192.168.1.108 192.168.1.108 192.168.1.108 192.168.1.108 192.168.1.108 etc. Your help

RE: Perl OOP

2003-01-25 Thread Burak Gürsoy
BUG var to 1 } ... } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Neil Sent: Saturday, January 25, 2003 6:04 AM To: [EMAIL PROTECTED] Subject: Perl OOP Hi, I have put together a couple of modules and I am _getting_ comfortable with Perl OOP. However, something today has

Perl OOP

2003-01-24 Thread Neil
Hi,   I have put together a couple of modules and I  am _getting_ comfortable with Perl OOP. However, something today has put me a bit sideways.   I will show code snippets to begin with and if its not clear - I'll post the actual code.   I have one OO package that creates 'deb