October 8th, 2012, 09:44 AM
Shuffle all parameters behind &
Hello i was wondering if anyone know how to shuffle an url with perl, but then only all parameters after the &
heres an example:
so i want all parameters behind the & on a different place every print, is this possible??
thnx in advance.
October 8th, 2012, 09:48 AM
You gave us an example of the before. Could you give us an example of after the shuffle?
October 8th, 2012, 09:50 AM
heres an example after
just so that all parameters behind the & are placed on a different place.
Originally Posted by G4143
October 9th, 2012, 01:06 AM
We need more details and context in what you're needing to accomplish.
Based on the almost non existent info, the solution would be to have your params in an array and use either the List::Util or Array::Shuffle module to shuffle the array and then join the elements to rebuild the url.