rumos has asked for the wisdom of the Perl Monks concerning the following question:
$!/usr/bin/perl -w package library; #use block use strict; use ... #global lib variables my $dbh; ... sub new { my $self = {}; shift; bless($self); return $self; }; sub method1 { ... }; sub method2 { ... }; ... 1;
use library; my $object=new library($kernel); #$kernel is my parent object
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to get list of methods inside object
by jeffa (Bishop) on Oct 11, 2005 at 13:59 UTC | |
by ikegami (Patriarch) on Oct 11, 2005 at 14:07 UTC | |
by dragonchild (Archbishop) on Oct 11, 2005 at 14:44 UTC | |
by merlyn (Sage) on Oct 11, 2005 at 15:43 UTC | |
by japhy (Canon) on Oct 11, 2005 at 14:06 UTC | |
|
Re: How to get list of methods inside object
by renodino (Curate) on Oct 11, 2005 at 21:23 UTC | |
|
Re: How to get list of methods inside object
by zentara (Cardinal) on Oct 12, 2005 at 10:42 UTC |