lskatz has asked for the wisdom of the Perl Monks concerning the following question:

Hi Perl Monks. Longtime listener, first time caller.

I want to know if there is an all-inclusive module that mimics PHP functions such as basename, urlencode, trim, file_put_contents, and file_get_contents.

I know that importing thousands of functions at once isn't efficient especially for large-scale projects, but I usually have small scripts and so I do not care so much about efficiency. I mean, if my code runs in 1s instead of 0.5s then it is completely worth it if I do not have to spend another second typing in use File::Basename or if I can use trim() instead of s/^\s+|\s+$/g.

Thank you for your help, Perl Monks!

Edit Thanks Perl Monks! You've really helped me!

Replies are listed 'Best First'.
Re: PHP functions
by toolic (Bishop) on Feb 07, 2011 at 15:54 UTC
    perl5i does some of what you want.
Re: PHP functions
by Anonymous Monk on Feb 07, 2011 at 16:01 UTC
Re: PHP functions
by Arunbear (Prior) on Feb 07, 2011 at 17:35 UTC
    Using ToolSet, you can create your own one-module-to-rule-them-all, and then use that in your various scripts.