[Pdx-pm] interesting testing hole thats been dug

Eric Wilhelm scratchcomputing at gmail.com
Tue Jan 2 18:17:21 PST 2007

# from Kris Bosland
# on Tuesday 02 January 2007 04:23 pm:

>Did you put
>your if/else in a begin block to be sure it happens before the use

You actually need an eval("use thing") if you want to use "use" 
conditionally.  But, you might want to BEGIN {if($foo) {require foo;} 
else {require bar}} instead.

The compiler is a really good detective.  If you use() anything anywhere 
it will find it.

Those who cannot remember the past are condemned to repeat it.
--George Santayana

More information about the Pdx-pm-list mailing list