Is there anything equivalent or close in terms of functionality to Python\'s virtualenv, but for Perl?
I\'ve done some development in Python and a possibility of having
I am not sure whether this is the same as that virtualenv
thing you are talking about, but have a look for the @INC
special variable in the perlvar
manpage.
I've used schroot
for this purpose. It is a bit heavier than virtualenv but you can be sure that nothing will leak in that shouldn't.
Schroot
manages a chroot environment for you, but mounts your home directory in the chroot so it appears like a normal shell session, just using the binaries and libraries in the chroot.
I think it may be debian/ubuntu only though.
After setting up the schroot
, your script above would look like
schroot -c my_perl_dev
wget ...
See http://www.debian-administration.org/articles/566 for an interesting article about it