Can someone make this work like I want? I'm trying to create a package
USER and reference/change it. The only thing I'm able to do is to call the
sub prtAll. I just want a structure that I can pass around in perl.

test.pl
-------
use USER;

#this does NOT work
#how do i reference these vars
USER::fname="bob";
USER::lname="Bingham";

print USER::prt . "\n";

USER.pm
-------
package USER;

$fname;
$lname;

sub prtAll { ... }



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to