Thread Nicht deklarierte our Variablen erkennen (8 answers)
Opened by marco42 at 2005-08-18 11:38

renee
 2005-08-18 12:06
#57272 #57272
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
nee, use strict sagt da gar nix:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
(reneeb) Thu Aug 18 10:04:55 [-bash]
~/entwicklung 202> cat >testA.pl
#!/usr/bin/perl
use strict;
use warnings;
use lib qw(.);
use A;

print $A::x,"\n";
$A::xFALSCH = "ohoh";
print $A::xFALSCH;
(reneeb) Thu Aug 18 10:04:55 [-bash]
~/entwicklung 202> cat >A.pm
package A;

use strict;
our $x = 99;

1;
(reneeb) Thu Aug 18 10:05:29 [-bash]
~/entwicklung 203> perl testA.pl
99
ohoh
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread Nicht deklarierte our Variablen erkennen