#!perl use strict; package Whatever; my $password = sub { 'passwd_here' }; sub reveal_pass { print "Authorised: ", $password->(), "\n"; } package main; Whatever::reveal_pass; print "Unauthorised: "; print ref $Whatever::password ? $Whatever::password->() : "no access!\ +n"; __END__ Authorised: passwd_here Unauthorised: no access!
"Argument is futile - you will be ignorralated!"
In reply to Re: Hiding my variables
by larryk
in thread Hiding my variables
by Brovnik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |