|
Posted by xhoster on March 6, 2008, 11:16 am
Please log in for more thread options
fvdmarkt@gmail.com wrote:
> Hi,
>
> Is this the right way to test for existence of arguments?
>
> if (@ARGV > 0) {
> }
>
> or should I use the index of the last argument?
>
> if ($#ARGV >= 0) {
> }
>
> Who has a better suggestion?
I prefer:
if (@ARGV) {
Xho
--
-------------------- http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
this fact.
|