R
Roman Khutkyy
Can anybody help? I built my script using module structure as i read: "...
and use the subroutines from modules as you are using its directly in main
program." So suppose i have the script main.pl and with 'use' i linked some
modules "Module1.pm", "Module1.pm","ModuleN.pm". The subroutines in each of
these modules use the DBI module to connect to database, make transaction,
query etc. Is there a method to create DBI object once in main.pl and use it
in any subroutine from any module. Now i have to create database connection
in each module, and there is no problem to do it because there is just 6
modules, and i can't see now how this technique slows server down, but when
the number of modules will be much more, or inet traffic will be like on
Microsoft servers
what to do then?
and use the subroutines from modules as you are using its directly in main
program." So suppose i have the script main.pl and with 'use' i linked some
modules "Module1.pm", "Module1.pm","ModuleN.pm". The subroutines in each of
these modules use the DBI module to connect to database, make transaction,
query etc. Is there a method to create DBI object once in main.pl and use it
in any subroutine from any module. Now i have to create database connection
in each module, and there is no problem to do it because there is just 6
modules, and i can't see now how this technique slows server down, but when
the number of modules will be much more, or inet traffic will be like on
Microsoft servers