in reply to Overriding perl modules

Here are a few ways to select a different module from the command line. Let's say I want to modify the behavior of Carp, and I copied the Carp.pm file to my local /home/toolic/lib directory. These command lines will effectively prepend my local directory to the @INC array, and choose my Carp over the standard module: See also perlrun and env