Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument "xyz" isn't numeric in eq. #345

Closed
p5pRT opened this issue Aug 5, 1999 · 1 comment
Closed

Argument "xyz" isn't numeric in eq. #345

p5pRT opened this issue Aug 5, 1999 · 1 comment

Comments

@p5pRT
Copy link

p5pRT commented Aug 5, 1999

Migrated from rt.perl.org#1178 (status was 'resolved')

Searchable as RT1178$

@p5pRT
Copy link
Author

p5pRT commented Aug 5, 1999

From @vlbrown

When I run this (sample) code​:

  #!/usr/bin/perl -w

  $x = 'xyz';

  if ($x == '7') {
  print "yes\n";
  }

I get a warning​:

  Argument "xyz" isn't numeric in eq at foo.pl line 5.

Yes and No.

True, the argument isn't numeric... but that's not an 'eq' there at line 5,
it's a '==' which is precisely the point of the warning; if I were (correctly)
using eq, there wouldn't _be_ a warning! :-)

The message should say

  Argument "xyz" isn't numeric in == at foo.pl line 5.

Perl Info


Site configuration information for perl 5.00502:

Configured by rdm at Sun Feb  7 16:25:31 PST 1999.

Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration:
   Platform:
     osname=freebsd, osvers=2.2.8-release, archname=i386-freebsd
     uname='freebsd cfcl.com 2.2.8-release freebsd 2.2.8-release #0: 
fri jan 15 1
8:39:18 pst 1999 rdm@cfcl.com:usrsrcsyscompilefreebie i386 '
     hint=recommended, useposix=true, d_sigaction=define
     usethreads=undef useperlio=undef d_sfio=undef
   Compiler:
     cc='cc', optimize='-O', gccversion=2.7.2.1
     cppflags='-I/usr/local/include'
     ccflags ='-I/usr/local/include'
     stdchar='char', d_stdstdio=undef, usevfork=true
     intsize=4, longsize=4, ptrsize=4, doublesize=8
     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
     alignbytes=4, usemymalloc=n, prototype=define
   Linker and Libraries:
     ld='ld', ldflags =' -L/usr/local/lib'
     libpth=/usr/local/lib /usr/lib
     libs=-ldb -lm -lc -lcrypt
     libc=/usr/lib/libc.so.3.1, so=so, useshrplib=false, libperl=libperl.a
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
     cccdlflags='-DPIC -fpic', lddlflags='-Bshareable  -L/usr/local/lib'

Locally applied patches:



@INC for perl 5.00502:
     /usr/local/lib/perl5/5.00502/i386-freebsd
     /usr/local/lib/perl5/5.00502
     /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
     /usr/local/lib/perl5/site_perl/5.005
     .


Environment for perl 5.00502:
     HOME=/home/vlb
     LANG (unset)
     LD_LIBRARY_PATH (unset)
     LOGDIR (unset)
  
PATH=/home/vlb/bin:/usr/local/bin:/usr/local/nib:/usr/bin:/bin:/etc:/s 
bin:/u
sr/sbin:/usr/local/games:/usr/games:.:/home/rdm/bin:/home/vlb/projex/ptf/bin
     PERL_BADLANG (unset)
     SHELL=/ulb/tcsh

-- --
        |\      _,,,---,,_       Vicki Brown <vlb@cfcl.com>
  ZZZzz /,`.-'`'    -.  ;-;;,_   Journeyman Sourceror: Scripts & Philtres
       |,4-  ) )-,_. ,\ (  `'-'  P.O. Box 1269  San Bruno  CA  94066
      '---''(_/--'  `-'\_) http://www.cfcl.com/~vlb  http://www.macperl.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant