baperl has asked for the wisdom of the Perl Monks concerning the following question:
however, the if-else is not working,and the mkt. cap continues to show N/A. Can you please help me fix it...thx!my @symbol=('AAXJ','MCO'); my @quotes = getquote(@symbol); foreach my $q (@quotes) { my @h = @{$q}; ($h[$i] eq 'N/A') ? 0 : $h[$i]; print "ticker is $h[0]\n"; print "mkt cap is $h[1]\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: N/A replacement not working
by toolic (Bishop) on Aug 10, 2011 at 15:39 UTC | |
|
Re: N/A replacement not working
by blue_cowdawg (Monsignor) on Aug 10, 2011 at 15:15 UTC | |
by baperl (Sexton) on Aug 10, 2011 at 15:29 UTC | |
by jethro (Monsignor) on Aug 10, 2011 at 15:47 UTC | |
by duyet (Friar) on Aug 10, 2011 at 15:54 UTC | |
by baperl (Sexton) on Aug 10, 2011 at 16:31 UTC |