Perl Monk, Perl Meditation | |
PerlMonks |
Re: Re: Re: Re: a simple include....by pcouderc (Monk) |
on Apr 30, 2003 at 14:38 UTC ( [id://254313]=note: print w/replies, xml ) | Need Help?? |
1- I understand from your answer that there is no equivalent of a "simple" include 2- I have tried do declare package main; in both main.pl and inc.pl. It would oblige me to declare $main::Sousprogramme for all the variables of my main.pl. I have done that but I get more errors in a $main::cursor = ($main::dbh)->prepare("Select..."); Database handle destroyed without explicit disconnect at /var/www/tools/crm/main.pl line 16. Wed Apr 30 15:59:34 2003 error Can't call method "prepare" on an undefined value at /var/www/tools/crm/main.pl line 44. This becomes complicated when I was looking for a "simple" include....
In Section
Seekers of Perl Wisdom
|
|