Dear monks,
Please help me understand the Dumper output. This Dumper output is of a scalar that I get from set_sql method of DBI::Class.
I want to know
1) the meaning of each BRACKET ie which means what in this context
qw _ ( { [ {},{},{} ] } )
2) Which hash of hash/hash of arrays ?? How to call these (qustion 1,2 are pointing to same thing)
3 How can I push values of each row eg ( 101,John,Scoial_science ) in an array one by one.
Following is the Dumper output of scalar from search_set_sql .
$VAR1 = bless( {
'_data' => [
{
'student_id' => '101',
'student_name' => 'John',
'stream' => 'Social_science',
},
{
'student_id' => '102',
'student_name' => 'Smith',
'stream' => 'History',
}
],
'_place' => 0,
'_mapper' => [],
'_class' => 'School::Block::Student'
}, 'Class::DBI::Iterator' );
Please help me to come out of this confusion.
Edit: g0n - code tags in 1)
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.