Thread Unklare Fehlermeldung: Variable "$p1" will not stay shared
(46 answers)
Opened by wastl at 2011-02-04 12:30
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: Wie frage ich & perlintro brian's Leitfaden für jedes Perl-Problem |