Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: oracle connection

by Corion (Pope)
on Jun 01, 2012 at 18:04 UTC ( #973829=note: print w/ replies, xml ) Need Help??


in reply to Re: oracle connection
in thread oracle connection

You can also directly ask DBI to return you a hash:

my $hash = $sth->fetchrow_hashref();


Comment on Re^2: oracle connection
Download Code
Replies are listed 'Best First'.
Re^3: oracle connection
by Eliya (Vicar) on Jun 01, 2012 at 18:34 UTC

    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' ) = ( ... );

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://973829]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (18)
As of 2015-07-07 17:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (92 votes), past polls