Thread Unklare Fehlermeldung: Variable "$p1" will not stay shared (46 answers)
Opened by wastl at 2011-02-04 12:30

pq
 2011-02-04 14:03
#145332 #145332
User since
2003-08-04
12208 articles
Admin1
[Homepage]
user image
wenn du es reproduzieren willst:
Code (perl): (dl )
1
2
3
4
5
6
7
8
sub handler {
    my $p1 = "ok";
    my $erg = up();
    exit;
    sub up {
        return $p1;
    }
}
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Unklare Fehlermeldung: Variable "$p1" will not stay shared