> "SHC" == Shawn H Corey writes:
SHC> New-style Perl objects are written in Moose
don't claim moose is the only new style objects. nor are they the
ultimate as they have their issues too. plain old hash objects are fine
for most common classes and better in many cases too than complex
thi
From: 120
> I've looked at this:
>
> sub encrypt {
> my $self = shift;
> my $xx = $$self;
> #.. cut stuff I do understand
>
> return $self->SUPER::encrypt();
> }
>
> Could someone help me with the Perl to English here?
> I get that $self is shifting the arguement.
$self is se
120 wrote:
> On Sat, 2009-12-05 at 08:45 -0500, Someone Something wrote:
>> SUPER is a class that controls the superclass of the current class.
>> Look here: http://search.cpan.org/~chromatic/SUPER-1.17/lib/SUPER.pm
>>
>> So, what that means is, run the encrypt method/subroutine/function of
>> the
On Sat, 2009-12-05 at 08:45 -0500, Someone Something wrote:
> SUPER is a class that controls the superclass of the current class.
> Look here: http://search.cpan.org/~chromatic/SUPER-1.17/lib/SUPER.pm
>
> So, what that means is, run the encrypt method/subroutine/function of
> the superclass of the
SUPER is a class that controls the superclass of the current class.
Look here: http://search.cpan.org/~chromatic/SUPER-1.17/lib/SUPER.pm
So, what that means is, run the encrypt method/subroutine/function of
the superclass of the current class. Something I would highly
recommend is dive into Beginn
Hi,
I'm in my 50's and new to Perl, and I love it! Wish I discovered it
years ago :-(
Slowly I'm learning bits an pieces but find myself getting confused at
times. I have that situation today.
I've looked at this:
sub encrypt {
my $self = shift;
my $xx = $$self;
#.. cut stuff I
Hey wiggins,
My MUA believes you used
to write the following on Monday, January 27, 2003 at 2:37:14 PM.
wdo> Yes that is an array reference, which is likely correct.
Cool, at least I am not totally out to lunch...
>> My question is how do I get it to print correctly like the FROM
>> l
On Mon, 27 Jan 2003 14:17:36 -0500, Tim Musson <[EMAIL PROTECTED]> wrote:
>
> The above code bit works just fine, with the exception of the
> $client->{TO} part. That prints ARRAY(0x1d8a454) and I _think_ that is
> an array reference (right?).
>
,
I think that is my problem anyway...
I am using the Net::SMTP::Server module as the server end of testing
SMTP mail. Very basic, which is what I was after. It uses
Net::SMTP::Server::Client to handle incoming client requests.
The example - changed just a bit - lets me print the Envelope data
(
answer? I just joined this group and would love to
> read the great answer referenced in the post.
>
> Thanks,
>
> Mike
>
> -Original Message-
> From: Sean O'Leary [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 23, 2001 12:30
> To: [EMAIL PROTECTED]
>
On Mon, Apr 23, 2001 at 01:08:36PM -0500, Hanby, Mike wrote:
: Could you repost the answer? I just joined this group and would love to
: read the great answer referenced in the post.
Don't forget about the archives at:
http://archive.develooper.com/beginners%40perl.org/
--
Casey West
Could you repost the answer? I just joined this group and would love to
read the great answer referenced in the post.
Thanks,
Mike
-Original Message-
From: Sean O'Leary [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 12:30
To: [EMAIL PROTECTED]
Subject: Re: help me under
At 07:33 PM 4/22/2001, you wrote:
>Sean O'Leary -- Damn that was a good explaination! I
>felt like I understood $_ very well before, but I
>understand it even better now. A very perlish post
>indeed. Larry the linguist would be proud!
>
>Matt
Thanks. : ) I'm glad I could help out.
There are lo
>
> Are there performance implications for using the implicit variable ($_) rather
> than declaring a specific variable? If so how great ?
Yes, though very minimal performance hit if anything.
Consider the following:
while (chomp(my $line = )) { ... }
vs.
while ()( ... }
According to an exc
On Mon, Apr 23, 2001 at 12:01:02PM +1000, [EMAIL PROTECTED] wrote:
:
:
: Hello Andy,
:
: Are there performance implications for using the implicit variable ($_) rather
: than declaring a specific variable? If so how great ?
There is no performance penalty that will be noticable. Note that
Pe
Hello Andy,
Are there performance implications for using the implicit variable ($_) rather
than declaring a specific variable? If so how great ?
Also, are there times when one is preferred over another - or is it simply the
coder's preference?
Thanks very much for your input
john
Sean O'Leary -- Damn that was a good explaination! I
felt like I understood $_ very well before, but I
understand it even better now. A very perlish post
indeed. Larry the linguist would be proud!
Matt
__
Do You Yahoo!?
Yahoo! Auctions - buy the th
At 02:47 PM 4/22/2001, you wrote:
>i have read about it in 3 books and even used it in scripts i have made
>but i still dont truly know how to be sure what $_ contains...can anyone
>clear this up for me? Thanks
>Chris Brown
I think the best way to talk about $_ is to speak about it
linguistica
$_ is just a global variable (with a funny name).
Many functions or operators just use this variable, when
you not explicitly tell them to use another one.
e.g chomp. chomp needs a variable to work on.
You can supply one like
chomp $x;
If you don't chomp thinks you mean
chomp $_;
and acts exac
Hi,
Chris Brown wrote:
> i have read about it in 3 books and even used it in scripts i have
> made but i still dont truly know how to be sure what $_ contains...
> can anyone clear this up for me? Thanks
Interesting question, which can be answered in a multitude of ways. The
long and the s
i have read about it in 3 books and even used it in scripts i have made but i still
dont truly know how to be sure what $_ contains...can anyone clear this up for me?
Thanks
Chris Brown
21 matches
Mail list logo