Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: SQL Questions

by amphiplex (Monk)
on Jul 08, 2002 at 09:44 UTC ( [id://180124]=note: print w/replies, xml ) Need Help??


in reply to SQL Questions

this should do it:
for (keys %$ref) { $data{$_} = $ref->{$_}; }
---- kurt

Replies are listed 'Best First'.
Re^2: SQL Questions
by tadman (Prior) on Jul 08, 2002 at 10:05 UTC
    That was kind of a lacklustre answer, wasn't it?

    Either way, you could be doing this:
    @data{keys %$ref} = values %$ref;
    No for loop, one line, no fuss.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-03-28 19:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found