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? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/