Monolith-0 has asked for the wisdom of the Perl Monks concerning the following question:
Up to now I haven't been haveing much trouble with getting the arguments for a script by using @ARGV or shift(). However, once I tried getting arguments that have the '=' (equal sign) in it, I no longer get anything. Apparently these sort of arguments are handled differently, and all I want to know is how to get the name and what it equals.
For example:
script.pl?number=100
The things I want to get are 'number' and '100'. How do I do that?
- Monolith
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting arguments such as ?page=20 for web scripts
by grep (Monsignor) on Jan 08, 2002 at 22:53 UTC | |
| |
|
Re: Getting arguments such as ?page=20 for web scripts
by Chmrr (Vicar) on Jan 08, 2002 at 22:56 UTC | |
|
Re: Getting arguments such as ?page=20 for web scripts
by merlyn (Sage) on Jan 08, 2002 at 22:50 UTC | |
|
Re: Getting arguments such as ?page=20 for web scripts
by cacharbe (Curate) on Jan 08, 2002 at 22:52 UTC | |
by Monolith-0 (Beadle) on Jan 08, 2002 at 22:55 UTC | |
by dmmiller2k (Chaplain) on Jan 08, 2002 at 23:47 UTC |