C
C GIllespie
Dear All,
I'm not too sure on the exact terminology, so I hope you will bare with me

In my small script, I have:
my $varA = $f->fault;
How do I pass $f to a subountine, i.e.
sub sub1(
$_->fault; #This is wrong!
)
sub1($f);
Declaring $f as global variable is one way, but are there any others?
Thanks
Colin
I'm not too sure on the exact terminology, so I hope you will bare with me
In my small script, I have:
my $varA = $f->fault;
How do I pass $f to a subountine, i.e.
sub sub1(
$_->fault; #This is wrong!
)
sub1($f);
Declaring $f as global variable is one way, but are there any others?
Thanks
Colin