<span style="font-family: courier new,monospace;">I thought I was doing the right thing, but I can't get there from here.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">What I'd like to do is 'conditional compile'. ie. define this set of</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">subroutines if something, and a different set if something else.</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">For example:</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">BEGIN {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> if (eval 'use AMODULE; 1") {<br>
sub mysub1 { print "do something"; }<br> sub mysub2 { print "something else"; }<br> } else {<br> sub mysub1 { print "mysub1() is unsupported"; }<br> sub mysub2 { print "mysub2() is unsupported"; }<br>
}<br>}</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Or in otherwords... if the module isn't found, I'd like to stub out some routines.</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Ideas anyone?</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">TIA</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Fulko</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">