Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Re: How could I check if a variable is 'read-only'?

by robin (Chaplain)
on Jan 31, 2002 at 18:49 UTC ( [id://142479]=note: print w/replies, xml ) Need Help??


in reply to Re: How could I check if a variable is 'read-only'?
in thread How could I check if a variable is 'read-only'?

I've talked about the Scalar::Util module before, and once again it comes to the rescue!
use Scalar::Util qw(readonly); ... if (readonly $x) { ... }
Get used to Scalar::Util and List::Util now - they're standard modules in 5.8.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (5)
As of 2024-03-28 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found