[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [PROGRAMMERING] [PERL] Require, subroutiner



Peter Makholm <sslug@sslug> wrote in
news:sslug@sslug: 

> Christian Nielsen <sslug@sslug> writes:
> 
>> Jeg har stor glæde af at have samlet nogle generelle routiner en fil 
>> (fil.pl), som jeg kan trække på fra mine scripts. Det går normalt
>> fint, men database logon giver problemer. Hvorfor? Se understående
>> eksempel. 
> 
> Som standard i denne situation vil Perl vist lade variable have
> file-scope. Det vil sige at den $dbh du bruger i den ene fil ikke er
> den samme som den $dbh du bruger i den anden fil.
> 
> Så lad være med at overføre værdier ved at bruge globale variable. 
> 

Hvad vil du så foreslå?
// Chr.


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 22:44 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *