Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Interpreting values alternately as $trings and Integers = confused response by Perlby jerrygarciuh (Curate) |
on Apr 14, 2002 at 19:54 UTC ( [id://158987]=perlquestion: print w/replies, xml ) | Need Help?? |
jerrygarciuh has asked for the wisdom of the Perl Monks concerning the following question:
Sober Monx, I have run into this now 3 times and realized I need to understand some underlying mystery. The following works as I expect when $ary[0] = 12.
However, I origianlly wrote the elsif as } elsif ($ary[0] = '12') { and found that $ary[0] was being assigned a value of 12. Will someone please advise me as to why this occurs? TIA jg _____________________________________________________ Think a race on a horse on a ball with a fish! TG
Back to
Seekers of Perl Wisdom
|
|