Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Syntactic Confectionery Delight
 
PerlMonks  

Re: SQL Questions

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 06: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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.