in reply to Re^2: Missing something with regards to references
in thread Missing something with regards to references
put_element($DATA{3}, 'h', 'i', 'j', 'k', 'value');
rather than this:
$DATA{3}{h}{i}{j}{k} = 'value'
I don't see how the sub optimizes anything, or provides anything that a direct call does.
Unless you're calling it like this:
my @arr = qw(h i j k); put_element($DATA{3}, @arr, 'value');
Is that how you're using it?
cLive ;-)
|
|---|