vagnerr has asked for the wisdom of the Perl Monks concerning the following question:
producesprint Data::Dumper->Dump([$sb]);
when I try and just display the subset of that data (ie just the bit that actualy interests me :-$VAR1 = bless( [ '100', [ [ '2593140', '2766860', '0', undef, undef, undef, undef, '0UI38923424239K', '2002-01-10 09:16:50', '1500', 'None Given', '£', 'GBP' ], [ '2513902', '2766861', '1', undef, undef, undef, undef, 'LKJS3892342423Y5S', '2002-01-10 09:16:54', '1500', 'None Given', '£', 'GBP' ], [ '2574165', '2766862', '0', undef, undef, undef, undef, '0ASJH2782121S', '2002-01-10 09:16:57', '1500', 'None Given', '£', 'GBP' ], ........etc
all I get isprint Data::Dumper->Dump($sb->[1]);
ie I dont seem to be able to access all the rest.$VAR1 = [ '2593140', '2766860', '0', undef, undef, undef, undef, '0UI38923424239K', '2002-01-10 09:16:50', '1500', 'None Given', '£', 'GBP' ];
where $anumber is 1,2,3,4 etc I get the first element of each of the successive arrays from the originalprint Data::Dumper->Dump($sb->[1]->[$anumber]);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(ichimunki) Re: Data::Dumper Dilema
by ichimunki (Priest) on Feb 01, 2002 at 13:21 UTC | |
|
Re (tilly) 1: Data::Dumper Dilema
by tilly (Archbishop) on Feb 01, 2002 at 15:05 UTC | |
by vagnerr (Prior) on Feb 01, 2002 at 19:12 UTC | |
|
Re: Data::Dumper Dilema
by simon.proctor (Vicar) on Feb 01, 2002 at 14:29 UTC | |
by vagnerr (Prior) on Feb 01, 2002 at 19:02 UTC |