Gossamer Forum
Home : General : Perl Programming :

Re: [Alex] @ISA

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


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:

sub Subroutine {

my $input = shift;

To get rid of the class or:

sub Subroutine {

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

if ($input eq "something") {

.....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 3690 Sep 6, 2002, 4:08 PM
Thread Re: [Forum Bot] @ISA
Alex 3592 Sep 6, 2002, 4:33 PM
Thread Re: [Alex] @ISA
Paul 3589 Sep 7, 2002, 2:07 AM
Post Re: [Paul] @ISA
Dafyyd 3553 Sep 7, 2002, 3:03 PM