Do you know where your variables are? | |
PerlMonks |
Re^3: extract words from specific locationby smls (Friar) |
on Jun 07, 2013 at 06:01 UTC ( [id://1037587]=note: print w/replies, xml ) | Need Help?? |
"No +1 does no work either" Sure it does:
...prints:
You can, and it will get you the exact same result for @tst_num as the +1 method. But in addition to that it will also modify @tst_num_temp, which you should be aware of in case the following code continues to use that variable. In any case, consider using a for loop like 2teez suggested, it's much nicer compared to a while loop with manually incremented index.
In Section
Seekers of Perl Wisdom
|
|