Do you know where your variables are? | |
PerlMonks |
Regex questionby Anonymous Monk |
on Oct 14, 2008 at 09:44 UTC ( [id://716928]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
hi why i can use this code: which will print 2001020713 but not this one: which will print 1 isn't $nums[0] a scalar like $number ?? and in the first code the regex will assign the result to $nums[0] which is a scalar, why not we can use a simple scalar like $number? thank you
Back to
Seekers of Perl Wisdom
|
|