Thread Variable als subname: Subroutine funzt ned (7 answers)
Opened by dyspro at 2007-04-10 00:26

Sucher
 2007-04-10 13:42
#75777 #75777
User since
2007-03-26
47 Artikel
BenutzerIn
[default_avatar]
Der vollständigkeit halber, und obwohl man es niemals, niemals, jemals machen soll. - Es geht natürlich auch ohne dispatch-table:



Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use strict;
use warnings;


while(my $eingabe = <STDIN>){
chomp $eingabe;
no strict;
&$eingabe;
use strict;
}

sub hello{
print "hi";
}
sub del{
unlink $0;
}

View full thread Variable als subname: Subroutine funzt ned