Thread Rückgabe Referenz? (4 answers)
Opened by theresa at 2008-04-16 15:46

esskar
 2008-04-16 17:04
#108467 #108467
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
wie wäre es mit

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
my $var = 'X';
foo(\$var);
print $var;

sub foo
{
   my $out = shift;
   # ..
   my $campus_but = $campus_frame -> Button(-text=>"HAW_Campus", -command => sub {$mw->destroy(); $$out = 'A'; }) -> pack();
   # ...    
}

View full thread Rückgabe Referenz?