prints "hello". Perhaps your issue lies elsewhere. If you can come up with a small runnable program that illustrates this error that may be more helpful.$customer->[0]{_address1} = 'hello'; my $i = 1; my $varname = '_address' . $i; print $customer->[0]{$varname};
In reply to Re: Hash name variable substitution
by Errto
in thread Hash name variable substitution
by peterb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |