kevind0718 has asked for the wisdom of the Perl Monks concerning the following question:
This code prints the variables as expected. I would like to eliminate the loop, because there is only one element in the outer most array.for my $e (@$bbData) { print Dumper $e; my $d = $e->[0]; ##print Dumper $d; print "Col Zero: " . $e->[0] . " Col One: " . $e->[1] . " Col F +our: " . $e->[4] . " \n" ; ##print "Col Zero: " . $d . " \n" ; #foreach $tmp (@aDim) { # print $tmp }
It produces the following output:print "Error: " . Win32::OLE->LastError . "\n"; print Dumper $bbData; $e = $bbdata->[0]; print Dumper $e; print $SQLUpdate . $SQLUpdateWhere . "\n";
I do not what to use the FOR loop because there is never more than one interior array. There must be a syntax that allows me to directly access the array contained in $bbdate[0].Error: 0 $VAR1 = [ [ 'VANGUARD TELECOM SERVICE ETF', 'B031NG6', '92204A884', 'US92204A8844', 'MSCITC' ] ]; $VAR1 = undef; update security set underlyingbloomberg = where securitykey =
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: de-referencing @$
by kyle (Abbot) on Sep 30, 2008 at 19:14 UTC | |
by kevind0718 (Scribe) on Sep 30, 2008 at 20:14 UTC | |
|
Re: de-referencing @$
by moritz (Cardinal) on Sep 30, 2008 at 19:08 UTC | |
|
Re: de-referencing @$
by harleypig (Monk) on Sep 30, 2008 at 19:32 UTC | |
|
Re: de-referencing @$
by Krambambuli (Curate) on Sep 30, 2008 at 20:02 UTC |