MynameisAchint has asked for the wisdom of the Perl Monks concerning the following question:
I have an array with words ,numbers and few spaces in between so I wish to run a for loop for that array , named test_num_tgb . so this is what I wrote
for ($j=1;$j<=$#test_num_tgb;$j++)it gives me an error Argument "" isn't numeric
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: number array with space
by farang (Chaplain) on Jun 20, 2013 at 05:32 UTC | |
|
Re: number array with space
by 2teez (Vicar) on Jun 20, 2013 at 05:42 UTC | |
by CountZero (Bishop) on Jun 20, 2013 at 06:15 UTC | |
by 2teez (Vicar) on Jun 20, 2013 at 06:21 UTC | |
by MynameisAchint (Novice) on Jun 20, 2013 at 06:51 UTC | |
by davido (Cardinal) on Jun 20, 2013 at 07:00 UTC | |
by 2teez (Vicar) on Jun 20, 2013 at 07:09 UTC | |
| |
|
Re: number array with space
by packetstormer (Monk) on Jun 20, 2013 at 11:42 UTC | |
by AnomalousMonk (Archbishop) on Jun 20, 2013 at 12:48 UTC |