English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am working on a script that accepts a name in the log-in. When the name (let's say it's "East West") gets passed, only up to the space is passed ("East").

How can I get around this?

2006-11-13 06:54:56 · 2 answers · asked by beatnik75 1 in Computers & Internet Programming & Design

2 answers

I've never encountered that problem in a Perl script. Is the input via an HTML form, or command line?

On the command line, you have to enclose the input in quotes or the command line parser will split the input, so East and West become separate parameters.

If it's form input, are you parsing it yourself or using CGI.pm? If the former, remember that spaces are replaced by +. Other than that, unless you're splitting the input at spaces, I don't see how that happens.

2006-11-13 08:08:20 · answer #1 · answered by injanier 7 · 0 0

I am not a perl programmer but I can tell you that you need to research escape sequences in perl.

2006-11-13 15:03:45 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers