manne has asked for the wisdom of the Perl Monks concerning the following question:
The above line was working fine till same code was used in another perl module file,now there is an error saying that Can't use string ("") as a subroutine ref while "strict refs" in use.$dbh = &{ $db_data->{db_info}->{dbh}->{$database} }( $db_data->{db_inf +o} );
Hope i can fix this error with your help.
Thankyou
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: subroutine ref error
by Anonymous Monk on Oct 26, 2010 at 23:29 UTC |