> but what if I want to pass a var? then
> $glob->($foo,$bar);
> ?????
Yes sir.. we have a winner!!!!
But I still have no clue as to why this works... esp.
$glob->();
just looked in my book.. am I dereferencing a reference?
but hey!
thanks anyway!
Lou
$Player{Location}="Inn";
$Player{Action}="Sell";
$Item="Blueberry";
require "$Player{Location}.pl";
# this code calls on the package #####################
my $glob = $main::{$Player{Location} . "::"}{$Player{Action}}; #
$glob->($Item); #
######################################################
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>