inc

How can my Perl script find its module in the same directory?

I recently wrote a new Perl script to kill processes based on either process name / user name and extended it using Classes so that I could reuse the process code in other programs. My current layout is - /home/mutew/src/prod/pskill <-- Perl script /home/mutew/src/prod/Process.pm <-- Package to handle process descriptions I ad...

How can I add a project specific @INC module-path to Komodo without breaking syntax checking?

For a Perl porting project I am using ActiveState's Komodo IDE 5.1 For external reasons, the xyz.pm modules reside in a different directory tree. By adding a PERL5LIB=<> under the "environemt" tab of the debu/run dialog, I can show Komodo/Perl how to run the script. Unfortunately the syntax checking doesn't seem to evaluate those direc...

How do I create an in-memory class and then include it in Perl?

So I am toying with some black magic in Perl (eventually we all do :-) and I am a little confused as to exactly how I am supposed to be doing all of this. Here is what I'm starting with: use strict; use warnings; use feature ':5.10'; my $classname = 'Frew'; my $foo = bless({ foo => 'bar' }, $classname); no strict; *{"$classname\::INC"}...