![]() |
|
XP is just a number | |
PerlMonks |
Re: Re: Re: Readonly variableby japhy (Canon) |
on Feb 26, 2001 at 22:56 UTC ( #60930=note: print w/replies, xml ) | Need Help?? |
You can use a comma or a semicolon, there is no difference. An even shorter (faster?) approach might be:
sub is_readonly { eval { $_[0] = $_[0], 1 } }
japhy -- Perl and Regex Hacker
In Section
Seekers of Perl Wisdom
|
|