in reply to Changing PM File at Run time

Delete it from %INC, and require it again.

But .pm files aren't the best way to store data. Either use a serialization format like YAML, JSON or CSV or plain text files.

If it has to be a perl script that holds the data, do EXPR or eval might be more appropriate.

Replies are listed 'Best First'.
Re^2: Changing PM File at Run time
by Anonymous Monk on Dec 10, 2008 at 16:56 UTC
    or even better, embedded perl in a yaml file