in reply to Get just constant from a package.

Is there any other way to do this?
Sure, you could hardcode the value. If it's a program that needs to run on multiple platforms, with different values for WNOHANG, you could make a switch on the supported platforms. Or determine the value when you install the program/module.

Replies are listed 'Best First'.
Re^2: Get just constant from a package.
by jg (Initiate) on May 14, 2010 at 22:27 UTC
    Or determine the value when you install the program/module.
    This might be helpful for my case. I haven't written a module which needs some installer, though.
    Maybe I should look some modules from CPAN.. or just use some regular expression to that?