diparun has asked for the wisdom of the Perl Monks concerning the following question:
In this code output, how do I access the sub-components of column_defs, for eg : how do i extract the data_length of a in column_defs ?
output :
create table as1( a float, b integer, c char) $VAR1 = { 'org_table_names' => [ 'as1' ], 'column_names' => [ 'A', 'B', 'C' ], 'command' => 'CREATE', 'table_names' => [ 'AS1' ], 'org_col_names' => [ 'a', 'b', 'c' ], 'column_defs' => { 'a' => { 'data_length' => undef, 'data_type' => 'FLOAT' }, 'b' => { 'data_length' => undef, 'data_type' => 'INTEGER' }, 'c' => { 'data_length' => undef, 'data_type' => 'CHAR' } } };
janitored by ybiC: Balanced <code> tags around codeblock, as per monastery convention
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Accessing references
by borisz (Canon) on Apr 22, 2004 at 00:07 UTC | |
Re: Accessing references
by bart (Canon) on Apr 22, 2004 at 01:21 UTC | |
by diparun (Initiate) on Apr 22, 2004 at 04:43 UTC | |
by Roy Johnson (Monsignor) on Apr 22, 2004 at 16:34 UTC | |
Re: Accessing references
by asdfgroup (Beadle) on Apr 22, 2004 at 00:29 UTC |
Back to
Seekers of Perl Wisdom