Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Looking for a function that returns status of a scalar's numeric flags

by syphilis (Archbishop)
on Mar 23, 2020 at 05:58 UTC ( [id://11114561]=note: print w/replies, xml ) Need Help??


in reply to Re: Looking for a function that returns status of a scalar's numeric flags
in thread Looking for a function that returns status of a scalar's numeric flags

You might try FTN::Bit_flags from CPAN.

I don't see how this is particularly relevant to my needs.

When one assigns a value to a scalar, $x, by doing say:
$x = -17; or $x = 1.414;
perl ascribes some numeric flags to $x, and those flags (which vary for different types of numbers) are not readily visible.
My main interest was in the ways that we can make those flags visible to the program - and it's not apparent to me how FTN::Bit_flags can help in that regard.
Looks to me that this module is more about manipulating bit flags, which is not my concern here. (I'm just trying to get a hold of the damn things ;-)

Cheers,
Rob
  • Comment on Re^2: Looking for a function that returns status of a scalar's numeric flags
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11114561]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-26 07:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found