RE: OO method query

2008-07-21 Thread Thomas Bätzler
Dermot <[EMAIL PROTECTED]> asked: > I am trying my hand at creating an package and am a bit > unsure about some of the inner working of what I've done. I recommend http://books.perl.org/book/171 > Q3) In new, can I allow for the object create being done with > more argument like my $page = new

OO method query

2008-07-21 Thread Dermot
Hi, I am trying my hand at creating an package and am a bit unsure about some of the inner working of what I've done. I have a new method sub new { my $class = shift; my $self = {}; $self->{type} = undef; bless($self, $class); return $self; } I also have a 'types' hash which is outsi