Pathologically Eclectic Rubbish Lister | |
PerlMonks |
When constructing a URL from script variables, how do I handle spaces properly?by rodry (Beadle) |
on Apr 28, 2000 at 23:44 UTC ( [id://9624]=perlquestion: print w/replies, xml ) | Need Help?? |
rodry has asked for the wisdom of the Perl Monks concerning the following question:
I have a script that will construct a link to
another PERL script and pass it parameters based on
a column returned by a query.
There is a problem however. This column that I am passing as a parameter may or may not have spaces in it. More than likely it will have spaces. So my question is: how do I detect this spaces and replace them with the appropiate ASCII character code. As an alternative, how do I filter the user input when providing values for this column so that it will eliminate the spaces, if any? Thanks in advance Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom
|
|