- Original Message
From: Aristotle Pagaltzis pagalt...@gmx.de
I would write that
my $self = shift;
my ( $name ) = @_;
:-)
(To my way of thinking, the invocant is not a positional
argument, so I always pull it out of @_ with a `shift`,
whereas I unpack arguments
* Ovid publiustemp-moduleautho...@yahoo.com [2010-09-10 08:20]:
From: Aristotle Pagaltzis pagalt...@gmx.de
I would write that
my $self = shift;
my ( $name ) = @_;
:-)
(To my way of thinking, the invocant is not a positional
argument, so I always pull it out of @_ with a
On Fri, Sep 10, 2010 at 1:13 PM, Paul LeoNerd Evans
leon...@leonerd.org.ukwrote:
On Thu, Sep 09, 2010 at 12:37:43PM -0700, Bill Ward wrote:
Yes, but doing so is naughty.
Really? Howso?
I ask because I do it in a module of mine.
one surprising aspect of perl is that Cbless affects the object, not
the reference, so it is possible to rebless things, which is handy if
you use package-based state machines
D:\perl -le bless $o=[],'abc';print $o; sub f{$l=shift; bless
$l,'DEF'} f $o; print $o
abc=ARRAY(0x3e5444)
On 10-09-09 02:43 PM, David Nicol wrote:
So whenever anyone says a Perl object is a blessed reference they're
speaking procedurally, not descriptively. Descriptively, a Perl object
is a reference to a blessed thingy.
(I think that's correct terminology, please correct if wrong)
Yes, Perl is
Hi,
I see the same mistake in this module as in 99% of the modules (including
mine). Why did you write it, with examples of what was wrong with the other
modules. I said with examples.
The fathers of the CPAN nation were wise. They advised a See Also section
which should be very detailed
Hi Nadim,
Thank you for all the great suggestions. I really appreciate your honesty,
not to mention the time you took to review the module. I am definitely
going to make most of the suggested changes before submitting to CPAN. In
my research, the modules I saw either didn't quite do what I