Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
perlrc for perl programsby targetsmart (Curate) |
on Feb 06, 2009 at 17:01 UTC ( [id://741957]=perlquestion: print w/replies, xml ) | Need Help?? |
targetsmart has asked for the wisdom of the Perl Monks concerning the following question:
I just wanted to know whether it is possible to set up hooks for every program that I do.
for eg, I am using Data::Dumper,strict, warnings, diagnostics, log::agent::logxxx routines, etc., in most of my everyday programs(from small to large), it is possible to ask perl to include these modules/pragmas from a configuration file like perlrc(eg, bashrc for bash), or is there any other way of mimicking this configuration file feature(parser, compiler... setting up some hooks in those modules).
Right now I am using perl-support vim plugin for this purpose; as and when I create the file, these 'use' lines will be added automatically based on some predefined templates.( but I want to be more perl-ish)
Any idea is greatly appreciated.
Vivek -- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.
Back to
Seekers of Perl Wisdom
|
|