On Fri, Sep 10, 1999 at 07:28:23PM +0200, Javier Vi�uales Guti�rrez wrote:

> P.D1: �C�mo implementar�a en perl el an�logo a 'if(argc<NUMARGS) exit(1);' 
> de C?.

Lo m�s parecido a C ser�a, $#ARGV

       @ARGV   The array @ARGV contains the command line
               arguments intended for the script.  Note that
               $#ARGV is the generally number of arguments minus
               one, because $ARGV[0] is the first argument, NOT
               the command name.  See "$0" for the command name.

o si no scalar(@ARGV).


        Marcelo

Responder a