Rusty perl question

Patrick Galbraith <[email protected]>
Newsgroups gmane.comp.apache.apreq
Message-ID <[email protected]>
Hi all,

I used to know the trick, I think, but can't remember. I want to code my 
application to be smart about whether it's on a system that can use 
mod_perl2/apreq, or if I have to use CGI. I 've code my app to use CGI 
successfully, but would like to keep the code that I worked to get apreq 
working as well. I would like for my application to be smart enough to 
say use apreq if it's there, or use CGI if it isn't. What's the magical 
trick to toggle the 'use libfoo' or 'use libfee'? Kindof like #ifdefs in 
C...

Thanks!

Patrick
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.