Hello monks and... monksesses? :-)
This snippet loads a module at runtime and works correctly:
unless (exists $INC{'Spreadsheet/WriteExcel.pm'}) { eval "use Spreadsheet::WriteExcel" ; croak $@ if $@ ; }
Anyway, is there anything wrong in what I am doing here?
Ciao!
--bronto
The very nature of Perl to be like natural language--inconsistant and full of dwim and special cases--makes it impossible to know it all without simply memorizing the documentation (which is not complete or totally correct anyway).
--John M. Dlugosz
In reply to %INC and eval use by bronto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |