in reply to Re: Detecting constant arguments passed to subroutines
in thread Detecting constant arguments passed to subroutines
perl -w -le 'sub is_const { !eval { ($_[0]) = $_[0]; 1; } } print "undef is ",(is_const(undef)?"":"not")," a constant"' undef is not a constant perl -MDevel::Peek -le 'Dump(undef)' SV = NULL(0x0) at 0x8120d38 REFCNT = 2147483622 FLAGS = (READONLY)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Detecting constant arguments passed to subroutines
by dcd (Scribe) on May 17, 2001 at 01:39 UTC | |
by japhy (Canon) on May 17, 2001 at 01:44 UTC | |
by chipmunk (Parson) on May 17, 2001 at 01:43 UTC |