more useful options | |
PerlMonks |
Re^5: Simplify code in Perl with "unless" conditionnalby Corion (Patriarch) |
on May 30, 2016 at 11:18 UTC ( [id://1164491]=note: print w/replies, xml ) | Need Help?? |
The code you show above does not work stand-alone. Please remove all parts that are not relevant to the problem at hand. If your problem is to rearrange the elements of @browsers in a random fashion, write a program that shows the array before being shuffled, shuffle it and then show the array after having been shuffled. The next step is then to inspect whether the array is getting shuffled as you want it. The next step after you are certain that the shuffling in itself works is to apply the new shuffled values to your code. Have you verified that you are using the shuffled elements? For debugging, printing all values at every step is often helpful to show the values as your program progresses through the program.
In Section
Seekers of Perl Wisdom
|
|