in reply to %INC and eval use
When I first had the problem to use a module only if it exists, I tried to just put use after the if clause. I was quite surprised that use is always used by the compiler. But for what reason anyway?unless (exists $INC{'Spreadsheet/WriteExcel.pm'}) { require Spreadsheet::WriteExcel; import Spreadsheet::WriteExcel; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: %INC and eval use
by ysth (Canon) on Mar 11, 2004 at 01:11 UTC |