Hi,
Iam asking a simple question,which u all feel stupid. While writing perl scripts, we will generally use modules.My code goes just like this.
use CGI; use DBI; my $cgi = new CGI; #instance of CGI
I will use this $cgi in my program. Just like this i will create instance for DBI also and I will use it in my rest of program.
if I use this code in every perl script, How the perl interpreter will process this code? My doubt is as Iam calling these things in every script, number of times will it load these modules or only once i.e. at first time only these modules will be loaded???
Second doubt is as Iam using new CGI to create an instance in every script, whether it will create number of instances which will overload the process, or with the available instance only will it work. Sorry, for asking these stupid questions. Iam new to PERL.
thanks
sekhar
2002-04-01 Edit by Corion : Added formatting
title=~s/!//g dvergin 2002-04-01
In reply to Doubt on perl instances! Plz reply... by ayyalaraj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |