[NCLUG] perl/programming question

S. Luke Jones luke at 6d.com
Mon Feb 19 13:27:35 MST 2001


"J. Paul Reed" wrote:
> > So, $S contains the object reference and %params now contains %blocks
> 
> This is one of the stupidest things about perl OO; if you have member
> functions (methods of a particular class), you have to actually "gather"
> what would be the 'this pointer' in C++ yourself... thus, the first
> statement of all (of my) OO perl stuff is:
> 
> sub member_function
> {
>    my $this = shift;
>    my @args = @_;

Yeah, I had a "d'oh" moment when I went back and read the original post
closely. I missed that this was object perl and I was trying to figure
out why the heck the user was removing half of a key-value pair from
a hash.

Ce la perl. I'm at my best with perl when I'm translating a shell script
-- that way I don't even boggle at the $ signs.

Luke



More information about the NCLUG mailing list