I mean to ask, wether they will clash with the same loaded modules loaded in calling script?
________________________________ From: "pa...@riseup.net" <pa...@riseup.net> To: Rajeev Prasad <rp.ne...@yahoo.com> Cc: perl list <beginners@perl.org> Sent: Friday, August 10, 2012 9:05 PM Subject: Re: subroutine in seperate file, question Yes, the modules in required file will be loaded. $ cat ext.pl use CGI; use DBI; 1; $ cat main.pl require 'ext.pl'; use Data::Dumper; print Dumper \%INC; Thus run perl main.pl to see what prints. > i want to keep a peice of code which uses CGI and DBIx module in a > seperate file, and want to include it in all my scripts as follows: > > require "/path/to/script/file"; > > I am not sure if the calling program is also using same modules CGI and > DBIx what kind of unknown errors i might get? anyone know?