Thread use lib $variabler_pfad???: statt einen Pfad eine Variable übergeben (9 answers)
Opened by landogar at 2006-03-09 11:03

esskar
 2006-03-11 01:37
#63654 #63654
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
[quote=renee,10.03.2006, 14:17]jepp, hast recht...
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl

use strict;
use warnings;

my $pfad;
BEGIN{
 $pfad = 'C:\cpan\WWW-ConfixxBackup-0.01\lib';
}
use lib $pfad;
use WWW::ConfixxBackup;
[/quote]
in dem Fall ist der BEGIN-Block unnötig.

View full thread use lib $variabler_pfad???: statt einen Pfad eine Variable übergeben