I'm not entirely sure I understand what you're doing - but it sounds like you're doing it incorrectly.If you want to create re-usable perl subroutines - you should do so in a module (.pm) not a script (.ipl) - and for easiest integration within TeamSite you should store the module within IWHOME/iw-perl/site/lib - so that you can use the standard use module-name; directive without having to hack together a use lib "lib-path"; directive.If you get that part cleaned up - it might fix your other problem. If it doesn't, you'll have to post the actual code for folks here to have a reasonable chance of debugging it for you - but I think you need to spend a bit more time trying to debug it yourself first.