There's more than one way to do things | |
PerlMonks |
Re^5: Simplify code in Perl with "unless" conditionnalby choroba (Cardinal) |
on May 30, 2016 at 12:49 UTC ( [id://1164498]=note: print w/replies, xml ) | Need Help?? |
If you want to replace @browsers with @random_array, you need to do it everywhere. You only used the random array to get the indices, which are in fact the same as in the original. Replace all mentions of @browsers by @random_array (except the one where you shuffle it, of course).
In Section
Seekers of Perl Wisdom
|
|