L
Lepi
Hello
When I'm calling a subroutine with one or two aguments, I use
something like this:
my ($first,$second)=@_;
to access them.
What if I want to pass a hash to function like:
%something={$first=>1,$second=>2};
function(%something);
sub function
{
How to access %something, and not to make it global???
}
Maybe I'm going in a totally wrong direction..
Thanks
Lepi
When I'm calling a subroutine with one or two aguments, I use
something like this:
my ($first,$second)=@_;
to access them.
What if I want to pass a hash to function like:
%something={$first=>1,$second=>2};
function(%something);
sub function
{
How to access %something, and not to make it global???
}
Maybe I'm going in a totally wrong direction..
Thanks
Lepi