Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: two problems about passing var between classes

by Biker (Priest)
on Apr 11, 2002 at 15:16 UTC ( #158337=note: print w/ replies, xml ) Need Help??

in reply to two problems about passing var between classes

1 - The first parameter to your method will always be the object handle. Try the following:

sub pass{ shift(); # To ignore the handle # or # my $self = shift(); if you want to use it. my ( $problem1 )= @_; print "$problem1\n"; }

Everything went worng, just as foreseen.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://158337]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2016-07-26 06:17 GMT
Find Nodes?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?

    Results (232 votes). Check out past polls.