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

p5pRT opened this issue Aug 5, 1999 · 1 comment

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

p5pRT opened this issue Aug 5, 1999 · 1 comment


Copy link

p5pRT commented Aug 5, 1999

Migrated from (status was 'resolved')

Searchable as RT1178$

Copy link

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 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 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:
     osname=freebsd, osvers=2.2.8-release, archname=i386-freebsd
     uname='freebsd 2.2.8-release freebsd 2.2.8-release #0: 
fri jan 15 1
8:39:18 pst 1999 i386 '
     hint=recommended, useposix=true, d_sigaction=define
     usethreads=undef useperlio=undef d_sfio=undef
     cc='cc', optimize='-O', gccversion=
     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/, 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:

Environment for perl 5.00502:
     LANG (unset)
     LD_LIBRARY_PATH (unset)
     LOGDIR (unset)
     PERL_BADLANG (unset)

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

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

No branches or pull requests

1 participant