what does the %$
signify?
$stored_var
is a hash reference and %$
is used to dereference it.
store \%batch_hash, "$batch_text";
%batch_hash
is a hash and \%
is used to pass the reference, so in store subroutine, you are passing reference of batch_hash hash as first parameter and $batch_text
variable as second parameter.