Thread problem mit lexikalischen variablen
(17 answers)
Opened by kabel at 2003-08-06 01:23
[quote=kabel,06. 08 2003,13:05]if (before ($tags_definition, $call_to->("check_link"))) {
$script->works ("no"); } else { $script->works ("yes"); }[/quote] ich weiss nicht, wo dein problem sein soll. wenn du eine subroutine aufrufst, bevor %tags deklariert wurde, und diese subroutine %tags braucht, dann kann das doch nicht gehn... also ruf die subroutine erst hinterher auf. ansonsten meinte ich mit code posten einen kleinen ausschnitt, der das problem reproduziert. Quote häh? 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: ![]() ![]() |