in reply to Re: Re: Re: Detecting constant arguments passed to subroutinesin thread Detecting constant arguments passed to subroutines
sub is_const { defined($_[0]) and !eval { ($_[0]) = $_[0]; 1 } } [download]