Re: objects regarding

2009-02-13 Thread suresh kumar
Thank you very much for your help. This satisfies my requirement. Thanks suresh On Thu, Feb 12, 2009 at 4:27 PM, Rob Dixon wrote: > suresh kumar wrote: > > > > This is my code : > > > > $::dev2->getvalue($x,$y); > > $::dev3->getvalue($x,$y); > > $::dev4->getvalue($x,$y); > > $::dev5->getvalue($

Re: objects regarding

2009-02-12 Thread suresh kumar
Hi all > > This is my code : > > $::dev2->getvalue($x,$y); > $::dev3->getvalue($x,$y); > $::dev4->getvalue($x,$y); > $::dev5->getvalue($x,$y); > $::dev6->getvalue($x,$y); > $::dev7->getvalue($x,$y); > $::dev8->getvalue($x,$y); > $::dev9->getvalue($x,$y); > $::dev10->getvalue($x,$y); > $::dev11->get

Re: objects regarding

2009-02-12 Thread Gunnar Hjalmarsson
Rob Dixon wrote: suresh kumar wrote: This is my code : $::dev2->getvalue($x,$y); The double colon in your variable names is probably superfluous unless your code is in a package other than 'main'. $::dev1 is equivalent to $main::dev1 and so just $dev1 if the current package is the default

Re: objects regarding

2009-02-12 Thread Rob Dixon
suresh kumar wrote: > > This is my code : > > $::dev2->getvalue($x,$y); > $::dev3->getvalue($x,$y); > $::dev4->getvalue($x,$y); > $::dev5->getvalue($x,$y); > $::dev6->getvalue($x,$y); > $::dev7->getvalue($x,$y); > $::dev8->getvalue($x,$y); > $::dev9->getvalue($x,$y); > $::dev10->getvalue($x,$y);

Re: Objects in an object?

2005-09-14 Thread Chris
On Wednesday 14 September 2005 04:25 am, Thomas Bätzler wrote: > Chris <[EMAIL PROTECTED]> asked: > > I'm not exactly sure what its called but for example, when > > using mod_perl, I see the following: > > > > $r->prev->uri > > > > How do you create something like this? > > $r is an object of some

RE: Objects in an object?

2005-09-14 Thread Thomas Bätzler
Chris <[EMAIL PROTECTED]> asked: > I'm not exactly sure what its called but for example, when > using mod_perl, I see the following: > > $r->prev->uri > > How do you create something like this? $r is an object of some class. prev is a method of that class. It returns an object on which the metho

Re: Objects in an object?

2005-09-14 Thread Xavier Noria
On Sep 14, 2005, at 9:24, Chris wrote: Greetings, I'm not exactly sure what its called but for example, when using mod_perl, I see the following: $r->prev->uri my $c = $r->connection; etc.. How do you create something like this? Easy, for instance you create an attribute "prev": $

Re: Objects and Arrays...

2004-01-29 Thread R. Joseph Newton
Pedro Miguel Freire Custódio wrote: > Hi, > > this is probably a stupid question. The question is that I want a > particular class of objects to have several attributes, one of them a > list (array), the problem is that I can't get it to work, it only > stores the last value, and when I try to jo

Re: Objects and Arrays...

2004-01-25 Thread Pedro Miguel Freire Custódio
hehe thanks, i really tried a lot of stuff.. but i didn't figure out the @{} operator... :) It worked! ;) Thanks, Pedro On 25 de jan de 2004, at 15:55, drieux wrote: On Jan 25, 2004, at 7:47 AM, Pedro Miguel Freire Custódio wrote: [..] sub _init { my $self = shift; $self->{OBJECT} = ("xpto1",

Re: Objects and Arrays...

2004-01-25 Thread drieux
On Jan 25, 2004, at 7:47 AM, Pedro Miguel Freire Custódio wrote: [..] sub _init { my $self = shift; $self->{OBJECT} = ("xpto1","xpto2"); ---> THE PROBLEM! It only stores xpto2 if (@_) { my %extra = @_; @$self{keys %extra} = values %extra; } } And when i try to use this method:

Re: [Thanks]: Re: Objects, threads and so on

2003-10-01 Thread R. Joseph Newton
david wrote: > Fernando wants to send the following thanks to all people who helped him on > this topic and some explanation of what he really wants to do. He somehow > sent it to myself only. > > #- forward message started -# > > Hello all, > OK, then. One subject at a t

[Thanks]: Re: Objects, threads and so on

2003-09-30 Thread david
Fernando wants to send the following thanks to all people who helped him on this topic and some explanation of what he really wants to do. He somehow sent it to myself only. #- forward message started -# Hello all, Thank you all for your attention. I'll answer here for

Re: Objects, threads and so on

2003-09-29 Thread david
Lists Perl Org wrote: > Hi all, > > I'm quite new to Perl so please bear with me :) > > I've experience in Delphi so I thought I knew about objects... it > seems I don't :( > > I want to have a class I won't instanciate (static members and > variables), with global vars so I can access them and

Re: Objects, threads and so on

2003-09-29 Thread Rob Dixon
Fernando wrote: > > I'm quite new to Perl so please bear with me :) We have no choice: this is, after all, perl.beginners! > I've experience in Delphi so I thought I knew about objects... it > seems I don't :( Yes you do :) But you're confusing methodologies with implementations. > I want to ha

Re: Objects, threads and so on

2003-09-29 Thread Ramprasad A Padmanabhan
Lists Perl Org wrote: Hi all, I'm quite new to Perl so please bear with me :) I've experience in Delphi so I thought I knew about objects... it seems I don't :( I want to have a class I won't instanciate (static members and variables), with global vars so I can access them and change them from wi

Re: Objects and inheritance....

2003-07-03 Thread Robin Norwood
Hamish Whittal <[EMAIL PROTECTED]> writes: > Robin, > > Thanks so much for the effort you put into this replyI just have a > few more questions...see below. > > What it does do is show how I solve the problem of the parent's > > classes 'new' not knowing about data members needed for the c

Re: Objects and inheritance....

2003-07-03 Thread Hamish Whittal
Robin, Thanks so much for the effort you put into this replyI just have a few more questions...see below. > Well, is a 'Device' a generic thing, which Cisco::cs2600 is a kind of? > Or is 'Device' a part of a 'Cisco::cs2600'? Or is 'Device' a specific > kind of 'Cisco::cs2600'? A device is a

Re: Objects and inheritance....

2003-07-02 Thread Robin Norwood
Hamish, There are lots of ways to do object orientedness and inheritance. How you do it depends very much on the problem(s) you are trying to solve, and often on personal style...I'll try to answer your questions in-line. Hamish Whittal <[EMAIL PROTECTED]> writes: > Hi Folks, > > I have an ob

Re: objects and hash

2002-02-08 Thread Michael Lamertz
On Fri, Feb 08, 2002 at 12:54:58PM +0100, Roman Fordinal wrote: > > problem? Yes! > :.. Roman Fordinal > :.. project manager Well, as a Project Manager you should, perhaps, be a bit more specific about what you want :-) > sub new > { > my $procc=sh

RE: Objects

2001-08-31 Thread Curtis Poe
--- Curtis Poe <[EMAIL PROTECTED]> wrote: > use strict; > > my $sname = "CblInfo"; > my $members; > for my $i ( 1 .. 10 ) { > $members->[$i] = $i; > } > my $a = person->new ( name => $sname, > array => $members); > > my $name = $a->g

RE: Objects

2001-08-31 Thread Curtis Poe
> This is one of my attempts to make this work. The method that returns the > scalar works. That method that returns the pointer to the array, doesn't > work. Kaleb, You only need to declare the 'person' package once. I see you have this listed before every method. Looking at your actual c

Re: Objects

2001-08-31 Thread register
> Sent: Friday, August 31, 2001 10:30 AM > To: Kaleb Murphy > Cc: [EMAIL PROTECTED] > Subject: Re: Objects > > > On Fri, 31 Aug 2001, Kaleb Murphy wrote: > > > Could someone give me an example of an object that has an array as a data > > member? Maybe a simple

RE: Objects

2001-08-31 Thread Kaleb Murphy
-Original Message- From: Brett W. McCoy [mailto:[EMAIL PROTECTED]] Sent: Friday, August 31, 2001 10:30 AM To: Kaleb Murphy Cc: [EMAIL PROTECTED] Subject: Re: Objects On Fri, 31 Aug 2001, Kaleb Murphy wrote: > Could someone give me an example of an object that has an array as a d

Re: Objects

2001-08-31 Thread Brett W. McCoy
On Fri, 31 Aug 2001, Kaleb Murphy wrote: > Could someone give me an example of an object that has an array as a data > member? Maybe a simple object and a simple method to return that array. What have you tried so far? -- Brett http://www.chapelperilou