Wednesday, August 28, 2013

So, my code got changed without my permission. So, I made a copy in a dev directory and started setting...

So, my code got changed without my permission.



So, I made a copy in a dev directory and started setting up tests and version control.



So, I changed the code so it adds dev/Tools/lib into $ENV{ PERL5LIB } rather than use lib 'dev/Tools/lib', so I can just copy the code over without changing that line once done, and I don't have to worry about production/lib/Tools/Foo.pm calling dev/lib/Tools/Bar.pm and vice versa.



Except, right now, dev/lib/Tools/Foo.pm uses my_cool_sub() from dev/lib/Tools/Bar.pm, and dev/Tools/test/foo.t says 'Undefined subroutine &Tools::Foo::my_cool_sub called at Foo.pm line 666' (not actual path and file names) which tells me that it doesn't really use Tools::Bar in Tools/Foo.pm.




No comments:

Post a Comment