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($
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
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
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);
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
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
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":
$
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
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",
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:
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
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
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
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
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
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
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
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
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
--- 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
> 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
> 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
-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
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
24 matches
Mail list logo