Can someone explain exactly the usage recomandations regarding the 4 perl imports: do, import, use and require?
I’m looking for practical recommendations and keeping in mind possible issues that might arise in the context of mod_perl or something similar.
We all love simple examples, good ones!
So far the best resource I found was http://soniahamilton.wordpress.com/2009/05/09/perl-use-require-import-and-do/ , but this missed to consider the implications of mod_perl.
You should first read
perldoc -f useandperldoc -f require.They are excellent resources and explain how
useworks, how it invokesimportand thenrequire, and how you could theoretically implementrequirein terms ofdo.If you have already read them, do you still have any specific open questions that the standard documentation doesn’t cover well enough and you would like to have answered in more detail?