[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Offtopic: Expresiones regulares, ¡ayudadme!



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


Reply to: