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'?
Scalar::Util did not work for me.sub is_readonly { eval {my $save=$_[0]; $_[0]=$save;}; return $@ =~/read.?only/; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How could I check if a variable is 'read-only'?
by syphilis (Archbishop) on Jan 02, 2019 at 05:02 UTC | |
by kschwab (Vicar) on Jan 02, 2019 at 14:39 UTC | |
by Anonymous Monk on Jun 14, 2019 at 23:50 UTC | |
by Anonymous Monk on Jun 15, 2019 at 19:44 UTC | |
by Your Mother (Archbishop) on Jun 15, 2019 at 19:56 UTC | |
by choroba (Cardinal) on Jun 15, 2019 at 20:00 UTC |