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

'use integer' vs. "-foo => bar" #599

Closed
p5pRT opened this issue Sep 20, 1999 · 2 comments
Closed

'use integer' vs. "-foo => bar" #599

p5pRT opened this issue Sep 20, 1999 · 2 comments

Comments

@p5pRT
Copy link

@p5pRT p5pRT commented Sep 20, 1999

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

Searchable as RT1458$

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Sep 20, 1999

From The RT System itself

The following struck me as kindof inconsistent​:

$ perl -cwe 'use strict; use integer; foo(-bar => "baz");'
Argument "bar" isn't numeric in i_negate at -e line 1.

$ perl -cwe 'use strict; foo(-bar => "baz");'
$ # no such warning

The former doesn't make much sense 'cause Perl should know that the thing
on the left-hand side of => isn't required to be a number.

Lot of code (for example, heaps of examples in the CGI documentation) thus
fails under "use integer". That's a Bad Thing, IMHO.

I'd fix it myself, but I'm not familiar enough with Perl's innards. :-(

--
Matthias Urlichs | noris network GmbH | smurf@​noris.de | ICQ​: 20193661
The quote was selected randomly. Really. | http​://www.noris.de/~smurf/
--
With a rubber duck, one's never alone.
  -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Apr 22, 2003

@iabyn - Status changed from 'stalled' to 'resolved'

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

Successfully merging a pull request may close this issue.

None yet
1 participant