in reply to (Segfault) Re: is_constant() - a routine that detects constant subs
in thread is_constant() - a routine that detects constant subs
see what this gives you...
samtregar, i'm glad you got this code working. it stuck in my head yesterday when i saw it mentioned, but i was too involved in the release of star wars to do anything about it.sub bar { 1 }; sub baz() { 1 }; *zip = sub{ 1 }; *zap = sub(){ 1 }; foreach ( qw/ FOO One::FOO Two::FOO bar baz zip zap / ) { if ( Two::is_constant( $_ ) ) { print "$_ Yes\n"; #$_ so i know which one i'm checking } else { print "$_ No\n"; } }
~Particle *accelerates*
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: (Segfault) Re: is_constant() - a routine that detects constant subs
by samtregar (Abbot) on May 19, 2002 at 21:32 UTC | |
by particle (Vicar) on May 20, 2002 at 01:20 UTC | |
by Anonymous Monk on May 20, 2002 at 18:20 UTC |