Do you have use strict or use strict 'defs' on?
You need to define your variables before you use them.
Tyler
>>> [EMAIL PROTECTED] 02/07/05 12:11 PM >>>
Okay, I got my package to work, well partially. I am making a call to
the package:
package::mySub( variable );
But my variable doesn't seem to go through. I get the error saying
the
variable is undefined. I am trying to assign it with shift, like:
sub mySub {
my $var = shift;
}
I'm positive the variable I am passing is defined. Do I have to pass
the variable a specific way?
*Correction to the code above: mysub instead of sub.
.===================================.
| This has been a P.L.U.G. mailing. |
| Don't Fear the Penguin. |
| IRC: #utah at irc.freenode.net |
`==================================='
Tyler Bird
UVSC - Continuing Education
.===================================.
| This has been a P.L.U.G. mailing. |
| Don't Fear the Penguin. |
| IRC: #utah at irc.freenode.net |
`==================================='