Gossamer Forum
Home : General : Perl Programming :

Re: [Alex] @ISA

Quote Reply
Re: [Alex] @ISA In reply to
Quote:
As a simple fix, try:

Module->Subroutine("input");

instead. This will get treated like a class method.

It's then probably worth pointing out too that the class name gets passed in as the first argument to "Subroutine" so he'll need:

Code:
sub Subroutine {

shift;
my $input = shift;

To get rid of the class or:

Code:
sub Subroutine {

my $class = shift;
my $input = shift;

if ($input eq "something") {
$class->error();
}

.....to save it and be able to call other class methods.

Last edited by:

Paul: Sep 7, 2002, 2:08 AM
Subject Author Views Date
Thread @ISA Dafyyd 4223 Sep 6, 2002, 4:08 PM
Thread Re: [Forum Bot] @ISA
Alex 4117 Sep 6, 2002, 4:33 PM
Thread Re: [Alex] @ISA
Paul 4116 Sep 7, 2002, 2:07 AM
Post Re: [Paul] @ISA
Dafyyd 4069 Sep 7, 2002, 3:03 PM