Here i create an anonymous hash andmy @list_accounts = map { {account => $_->name,id=>$_->account_id} }@a +ccounts; foreach my $list_account (@list_accounts) { $$list_account{account_selected} = ($$list_account{id} == $contacts->account_id) ? 1:0; }
In reply to Anonymous hash warning by kprasanna_79
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |