in reply to Re: oracle connectionin thread oracle connection
You can also directly ask DBI to return you a hash:
my $hash = $sth->fetchrow_hashref();
Sure you can (presuming the query produces the desired column names).
I was mainly trying to answer the general case, i.e. the typical "beginner's" problem of wanting to dynamically create variables like
$xxx = "$DBNAME,$USERNAME,$PROFILE";
my ( '$xxx' ) = ( ... );
Once (shame on you!)
Twice (shame on me!)
More often than I'd like to be
All the time
Just when answering stupid polls
Who you callin' a fool?
I refuse to vote in this ridiculous poll
Results (491 votes). Check out past polls.