in reply to passing a hash to module function
Either, call it as a function if that is what's appropriate$mail->sendmail({to=>'koszta@seznam.cz', from=>'admin@server.com', dat +a=>'hi from server', + subject=>'msg body'});
Or remember to pull the object reference first.sendmail({to=>'koszta@seznam.cz', from=>'admin@server.com', data=>'hi +from server', + subject=>'msg body'});
sub sendmail { my $self = shift; my $param = shift;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: passing a hash to module function
by kosta (Sexton) on Feb 15, 2011 at 20:00 UTC |