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
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: When constructing a URL from script variables, how do I handle spaces properly?
by merlyn (Sage) on Apr 30, 2000 at 16:01 UTC | |
by steveAZ98 (Monk) on Jul 25, 2000 at 06:08 UTC | |
Re: When constructing a URL from script variables, how do I handle spaces properly?
by Accipiter (Initiate) on Jul 18, 2001 at 01:08 UTC |
Back to
Seekers of Perl Wisdom