my $fb = new Foobar; $fb->Barfoo::thisone; # <- This is the line I'm not sure about. I know + it works but I've never really seen subs called like this before. Yo +ur thoughts? package Foobar; sub new { bless { cow => 'moo' }, shift } package Barfoo; sub thisone { my $self = shift; print "cows go: $self->{cow}"; }
edited: Mon Sep 30 03:46:39 2002 by jeffa - title change (was: Your thoughts, please)
In reply to Invoking method in another package by nutshell
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |