in reply to splitting contents of a variable ( not what you think!! )
You're close. You probably want to put all your strings into an array, then use the reverse of split, join to put your '&' into place. Continuing from your code:
my @strings; foreach $keyword (@keywords){ $wordnum++; push @strings, "keyword_$wordnum=$keyword"; } my $string = join '&', @strings;
-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com
||
"You've left the lens cap of your mind on again, Pinky" - The Brain
"I can see my house from here!"
It's not what you know, but knowing how to find it if you don't know that's important
In Section
Seekers of Perl Wisdom