Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: splitting contents of a variable ( not what you think!! )

by Masem (Monsignor)
on Jan 28, 2002 at 04:51 UTC ( #142000=note: print w/replies, xml ) Need Help??

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 - || "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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://142000]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2016-10-28 20:23 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (387 votes). Check out past polls.