Hi ,
using TS 6.5 SP1 Win 2003 .
We have created a .pm file . We want to put this .pm file at diffrent location other than 'lib' directory .
say 'D:\mylibdir\lib\myprog\common.pm'
I have to include this .pm file in TPL.
[HTML]
BEGIN
{
unshift(
@INC , 'D:\\mylibdir\\lib');
}
use myprog::common;
[/HTML]
But i am getting error . ( ie., there is some problem in processing of TPL ) .
But if i include the same .pm file in other standalone perl code , its working fine .
Can anyone tell me whats wrong with this ?
If I comment
'use myprog::common;' then its working fine .
Regards
Rohit