jerrygarciuh has asked for the wisdom of the Perl Monks concerning the following question:
if ($ary[0] > 12) { $ary[0] -= 12; $ary[0] = '0'.$ary[0]; $scalar = 'foo'; } elsif ($ary[0] eq '12') { $scalar = 'foo'; } else { $scalar = 'bar'; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Interpreting values alternately as $trings and Integers = confused response by Perl
by ariels (Curate) on Apr 14, 2002 at 19:56 UTC | |
by elbie (Curate) on Apr 14, 2002 at 20:07 UTC | |
by premchai21 (Curate) on Apr 15, 2002 at 01:09 UTC | |
Re: Interpreting values alternately as $trings and Integers = confused response by Perl
by Juerd (Abbot) on Apr 14, 2002 at 20:07 UTC | |
jerrygarciuh flogs-self with the trout of rebuke.
by jerrygarciuh (Curate) on Apr 14, 2002 at 21:40 UTC | |
Re: Interpreting values alternately as $trings and Integers = confused response by Perl
by CukiMnstr (Deacon) on Apr 14, 2002 at 20:37 UTC | |
Re: Interpreting values alternately as $trings and Integers = confused response by Perl
by Anonymous Monk on Apr 15, 2002 at 10:55 UTC |