I passed a has reference to my sub and tried dereferencing it within the sub
and get an exception Can't use string ("1") as HASH ref while strict refs in
use. 


my %mail_parameters = (
        'Fname' => "$nickname_db_exist[1]",
        'Lname' => "$nickname_db_exist[2]",
        'E-mail' => "$reset_email",
        'Subject' => "Your $site_name Password Reset",
        
    );

    # Send the requested information.
    Mail_worker(\%mail_parameters);


Sub mail_worker {

    $received_arg = @_;
    %params = %$received_arg;# Can't use string 1 as HASH ref while strict
refs in use
    .........
    ..............

}

Regards


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to