Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by Haarg (Priest)
on Mar 22, 2020 at 09:29 UTC ( [id://11114540]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %flags;
    {
    ...
      my $flags = B::svref_2object(\($_[0]))->FLAGS;
      join ' ', sort grep $flags & $flags{$_}, keys %flags;
    }
    
  2. or download this
      is flags($copy), flags($value),
        "$value_name: quotify doesn't modify input";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 21:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found