Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: How hashes present keys and values.

by BatGnat (Scribe)
on Dec 14, 2000 at 02:16 UTC ( [id://46487]=note: print w/replies, xml ) Need Help??


in reply to How hashes present keys and values.

Why not try this:
sub update_table{ my $l_tablename = shift; my %l_fields = shift; my $l_fieldnames; my $l_fieldvalues; map { $l_fieldnames .= $_; $l_fieldvalues .= $l_fields{$_}; } keys %l_fields; my $l_prepare = "INSERT $l_tablename (" . $l_fieldnames . ")\n VAL +UES(" . $l_fieldvalues . ")"; return $l_prepare; }

BatGnat

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-25 23:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found