Good day.
There is a sub'a, the first parameter to which the hash is transmitted, but not simple, but tricky. If you bring him through Dumper, then we see that he is inside bless (read, read, but did not understand how to practically understand it :)))
use Data::Dumper; sub test{ print Dumper shift }
Conclusion
$VAR1 = bless( { 'protocol' => 114, 'cb' => 'envrcpt', 'socket' => bless( \*Symbol::GEN2, 'IO::Socket::INET' ), 'callbacks' => { 'envrcpt' => sub { "DUMMY" } }, 'reply' => undef, 'callback_flags' => 31, 'symbols' => { 'M' => { '{auth_author}' => 'sender@domain.tld', '{mail_mailer}' => 'local' } } }, 'Sendmail:PMilter::Context' );
How to approach these fields? I would like to print var{'symbols'}{'M'}{'auth_author'}
and get what we need.