David Glasser on Sun, 25 Jun 2000 00:12:37 -0400 (EDT) |
Adam Turoff says: >Sounds like what you want is an eval block to execute iff you want to >load Net::FTP: > if ($load_ftp) { > eval {use Net::FTP;} > ## blah blah blah > } > >I'm pretty sure that putting the use clause inside the if scope isn't >sufficient to prevent the module to be loaded at compile time; using >eval "" or eval {} should do that. Actually, only eval "" will do that; since eval {} is basically a glorified version of do {} with exception catching, it 'use's at compile time. --David Glasser me@davidglasser.net **Majordomo list services provided by PANIX <URL:http://www.panix.com>** **To Unsubscribe, send "unsubscribe phl" to majordomo@lists.pm.org**
|
|