in reply to Re: better cli processing
in thread better cli processing
which is shameless cut'n'paste from perldoc perlrun. Now, I'd *think* it works, but it doesn't. I dont get nothing whatsoever, no matter if I pass -xyz=abc or leave it out. The Almighty Manual Book says:#!/usr/bin/perl -s print $xyz if $xyz;
The following program prints "1" if the program is invoked with a -xyz switch, and "abc" if it is invoked with -xyz=abc.
But it doesn't. I tried on freebsd 4.4, linux 2.4.18. I even tested on winxp and nothing. And hey, if it doesn't work on _windows_ there have got to be something wrong with it! ;p
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: better cli processing
by BrowserUk (Patriarch) on Nov 03, 2002 at 01:17 UTC | |
by AlCapone (Novice) on Nov 04, 2002 at 00:01 UTC | |
by Aristotle (Chancellor) on Nov 06, 2002 at 11:50 UTC |