Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

(jeffa) Re: Table building confusion Help Wanted

by jeffa (Bishop)
on Jan 16, 2002 at 03:17 UTC ( [id://139081]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use Data::Dumper;
    ...
    }
    
    print Dumper $ref;
    
  2. or download this
    $VAR1 = [
              [
    ...
                'son'
              ]
            ];
    
  3. or download this
    use strict;
    use Data::Dumper;
    ...
    }
    
    print Dumper \%data;
    
  4. or download this
    $VAR1 = {
              'C1' => {
    ...
                        'ssn' => '999-99-9999'
                      }
            };
    
  5. or download this
    foreach my $key (sort keys %data) {
       print 'insert into db_table(',
          join(',',('entity',keys %{$data{$key}})), ') values(',
          join(',',map { "'$_'" } ($key,values %{$data{$key}})), ")\n";
    }
    
  6. or download this
    for (@major_PER_Data) {
       print 'insert into db_table(',
          join(',',keys %$_), ') values(',
          join(',',map { "'$_'" } values %$_), ")\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-25 19:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found