In the old days, it was common to write your module with Exporter and have a hefty @EXPORT list of functions exported into the caller's namespace by default. Nowadays that is often considered messy, and @EXPORT_OK is used instead so that you have to explicitly ask for the functions you want. That is good for writing maintainable programs. But for one-liners and throwaway scripts, it is more awkward. Would it fly to introduce a third export list, @EXPORT_ONELINER, which applies only with the -M argument on perl's command line? By default, @EXPORT_ONELINER would be the union of @EXPORT and @EXPORT_OK. -- Ed Avis <eda@waniasset.com>Thread Next