Leser: 4
|< 1 2 >| | 12 Einträge, 2 Seiten |
Quotereturn {
config => {
bla => 1,
blub => 2
},
};
1 2 3
sub _{s;;xrqIpiql\\{}p{pl{R>rl{N{}gjwpkssq]>rl{N;;;*{{}=*{_};; ${{}={q{{{}}}=>[reverse+split+reverse+q;}{;]};${{}->{q{{{}}}}->[@{{}];} ${{}=reverse+_(q{{}}=>q{{}})^chr(30)x+length&_(q{{}}=>,q{{}})and+print;
Quotereturn {
config => {
bla => 1,
blub => 2
},
};
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
my $configFile = "config.dat";
my $config;
unless (open (FH, $configFile)) {
die "Error: can't open '$configFile': $!\n";
}
else {
local $/;
my $code = <FH>;
close (FH);
$code =~ s/^return\s*=>/\$config = /;
eval "$code";
die $@ if $@;
}
1 2 3
sub _{s;;xrqIpiql\\{}p{pl{R>rl{N{}gjwpkssq]>rl{N;;;*{{}=*{_};; ${{}={q{{{}}}=>[reverse+split+reverse+q;}{;]};${{}->{q{{{}}}}->[@{{}];} ${{}=reverse+_(q{{}}=>q{{}})^chr(30)x+length&_(q{{}}=>,q{{}})and+print;
return 0;
1
2
3
4
5
6
7
E:\tmp\test\require>perl
use warnings;
use strict;
my $result = require('config.dat');
print $result;
^D
config.dat did not return a true value at - line 3.
1
2
3
4
5
6
7
8
9
E:\tmp\test\require>perl
use warnings;
use strict;
my $result = require('config.dat');
print $result;
^D
config.dat did not return a true value at - line 3.
E:\tmp\test\require>
Quotelocal $/;
my $code = <FH>;
close (FH);
Quotemy $code = join '', <FH>;
close(FH);
1 2 3
sub _{s;;xrqIpiql\\{}p{pl{R>rl{N{}gjwpkssq]>rl{N;;;*{{}=*{_};; ${{}={q{{{}}}=>[reverse+split+reverse+q;}{;]};${{}->{q{{{}}}}->[@{{}];} ${{}=reverse+_(q{{}}=>q{{}})^chr(30)x+length&_(q{{}}=>,q{{}})and+print;
|< 1 2 >| | 12 Einträge, 2 Seiten |