in reply to Why should I use Exporter?
I made two portability modules, each exporting the same function names. Then the rest of the code can use the exported functions without worrying about where they came from.BEGIN { if ($^O =~ /Win/) { eval "use Tricky_Win;" } else { eval "use Tricky_Linux;" } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why should I use Exporter? (if.pm)
by Aristotle (Chancellor) on Jun 18, 2003 at 22:05 UTC |