Thread Variablen eines scripts im importierten Script verwenden (2 answers)
Opened by crojay at 2011-04-29 12:08

topeg
 2011-04-29 16:02
#148092 #148092
User since
2006-07-10
2611 Artikel
BenutzerIn

user image
Bitte richtige Module:

functions.pm:
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package functions;
use strict;
use watnings;
use Exporter;
our @ISA =qw( Exporter );
our @EXPORT=qw(log_this getPropertyFromFile $COPRA_HOME %configValue $customer $ordername);

use PDF::API2;
use File::Basename;

my $id = __PACKAGE__;
our $COPRA_HOME = $ENV{'COPRA_HOME'};
our %configValue;
our $customer;
our $ordername;

...

1;


Programm.pl:
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
use 5.006;
use strict;
use warnings;
use lib "$ENV{'COPRA_HOME'}\\printmethod\\common\\scripts";
use functions;


$ordername = "OJ";
$customer = "mffm";

...


Alles andere bringt nur Chaos.

View full thread Variablen eines scripts im importierten Script verwenden