Thanks for looking into this. But unfortunately I am executing with reference only the same as I quoted earlier i.e. Data::Dumper->Dump($arrayReference) .
Actually even if one were to try Data::Dumper->Dump(@$arrayReference). They would run into usage error and not an output. But since you asked me that. what was your reason for doubting that? there might be some clue for me in your observation.
Keeping in mind your doubts. I thought would share with you sample usage and let see if you can point out some error in that.
$Data::Dumper::Useqq = 1;
my $abc=['cde','bdef','dummy', " \n"];
print (Data::Dumper->Dump($abc) . "\n"); #this will work fine
print (Dumper($abc) . "\n"); #this will work fine
print (Data::Dumper->Dump(@$abc) . "\n"); # this will give usage error
+ as I mentioned earlier.
Note: this is not my real code. just a simple example of how I am using array reference with this module.
$VAR1 = "cde";
$VAR2 = "bdef";
$VAR3 = "dummy";
$VAR4 = " \n";
$VAR1 = [
Usage: PACKAGE->new(ARRAYREF, [ARRAYREF]) at /tmp/ab123.pl line 8
Kindly look into this and let me know if I am missing anything.
PS: anyway question is
1) for me why one of the elements(1st element) is not being seen.
2) what could it possibly be?
3) and is there any way to identify it?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
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:
Outside of code tags, you may need to use entities for some characters:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||