Thread Funktionsaufruf per String eval (17 answers)
Opened by Escape at 2008-08-02 21:12

Struppi
 2008-08-03 04:23
#113035 #113035
User since
2006-02-17
628 Artikel
BenutzerIn
[Homepage]
user image
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl -w
 
use strict;
my $x = 'test';

no strict 'refs';
my @x = $x->();
print "@x";

 sub test {
 my @array =qw(a b c d);
 return @array
 }

View full thread Funktionsaufruf per String eval