[Previo por Fecha] [Siguiente por Fecha] [Previo por Hilo] [Siguiente por Hilo]
[Hilos de Discusión] [Fecha] [Tema] [Autor]On Thu, 2004-08-26 at 13:00, Max Valdez wrote:
> On Thursday 26 August 2004 12:42, costal en servidor unam mx wrote:
> > > Lo dicho no hay absolutamente nada que yo pueda hacer
> > >
> > > Nada == NULL == 0
> > >
> > > entendiste ?
> >
> > Orale no sabia que null era igual a 0
> -----------------------------
>
> if ( NULL == 0 ) {
> print "Es igual\n";
> } else {
> print "No es igual\n";
> }
>
> max@garaged /home/max/IMAGES $ perl text.pl
> Es igual
$ perl -w text.pl
Argument "NULL" isn't numeric in numeric eq (==) at text.pl line 3
$ perl -Mstrict text.pl
Bareword "NULL" not allowed while "strict subs" in use at text.pl line
3.
Execution of text.pl aborted due to compilation errors.
Interesante, si.
Saludos.
--
Salvador Ortiz Garcia <sog en msg com mx>
Matías Software Group