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
defined(&constantsub) always returns FALSE for imported constants #6026
Comments
From @jimavCreated by @jimavuse Fcntl; This is inconsistent, and is a real user problem if a symbol may or use strict; if O_FOOBAR is undefined, it hits case 2 (correct). I hit this problem trying to use O_BINARY on Doshish platforms. I'm not certain whether or not O_BINARY is defined on all Cheers. Perl Info
|
From @rgsJim Avera (via RT) <perlbug@perl.org> wrote:
In fact, the Fcntl constants are AUTOLOAD'ed. |
From @eserteJim Avera (via RT) <perlbug@perl.org> writes:
This is documented in the perlsub documentation for "defined": | Note that a subroutine which is not defined may still be callable: its You can use "exists" instead, because "exists" checks whether a Rehards, -- tkruler - Perl/Tk program for measuring screen distances |
From @jimavThanks. But... perlfunc (under 'exists') says: This implies that exists(&subname) returns FALSE for an This contradicts reality. -Jim --- Rafael Garcia-Suarez <perlbug@perl.org> wrote:
===== __________________________________________________ |
From @cpansproutOn Wed Oct 23 22:44:42 2002, jimav wrote:
It’s true that non-existent functions can be AUTOLOADed. But you can’t So, if Fcntl does not export FROMP, then &FROMP will call
Any suggestions? |
Migrated from rt.perl.org#18046 (status was 'open')
Searchable as RT18046$
The text was updated successfully, but these errors were encountered: