in reply to Detecting constant arguments passed to subroutines
sub is_const { !eval { ($_[0]) = $_[0]; 1; } } for (...) { if (is_const($_)) { ... } else { ... } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Detecting constant arguments passed to subroutines
by dcd (Scribe) on May 17, 2001 at 01:24 UTC | |
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 | |
|
Re: Re: Detecting constant arguments passed to subroutines
by dcd (Scribe) on May 17, 2001 at 10:32 UTC | |
by dcd (Scribe) on May 29, 2001 at 10:30 UTC | |
by Anonymous Monk on Sep 14, 2005 at 00:24 UTC | |
|
Re: Re: Detecting constant arguments passed to subroutines
by Anonymous Monk on May 17, 2001 at 01:02 UTC |