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;" } }
In reply to Re: Why should I use Exporter?
by tall_man
in thread Why should I use Exporter?
by pernod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |