I wonder if I could do this in an eval... (scurries off to try)
If you didn't crack it, try this:
print eval{ require version; 1; } ? 'Found it!' : "T'ain't available!" +;; Found it! print eval{ require Does::Not::Exist; 1; } ? 'Found it!' : "T'ain't av +ailable!";; T'ain't available!
In reply to Re^3: Switching Modules as Necessary
by BrowserUk
in thread Switching Modules as Necessary
by Melly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |