in reply to Re: Is this safe to export and import functions this way? (:all)
in thread Is this safe to export and import functions this way?

Surprisingly, it works at first launch (I used a simplified version to avoid having to create a file to be read):
$ perl -e ' use strict; use warnings; use My::Package (keys %My::Package::); # test("hello world\n"); test_2("hello this is dog"); ' hello world hello this is dog
But I am of course not saying it is a good idea to do that.
  • Comment on Re^2: Is this safe to export and import functions this way? (:all)
  • Download Code