Thread strukturierung perl code
(7 answers)
Opened by cirruswolke at 2010-03-03 11:43
ich habe eine sub in der ich ein bissl parse:
Code (perl): (dl
)
1 2 3 4 5 6 7 8 my $y; sub x{ open( IN, "<$file" ) or die "Konnte Input nicht oeffnen!\n"; while (<IN>) { if ($y=......)...... close(IN); } &x; dann gebe ich die einzelnen Parameter in Html aus: Code (perl): (dl
)
1 2 3 4 5 6 7 print '<html>'; print '<head>'; print '</head>'; print '<body>'; print '$y'; print '</body>'; print '</html>'; Problem ist, dass $y nicht ausgeben wird, obwohl da was drin steht. ?? Edit betterworld: Perl-Tags eingefügt Last edited: 2010-03-03 12:24:54 +0100 (CET) |