Thread strukturierung perl code (7 answers)
Opened by cirruswolke at 2010-03-03 11:43

cirruswolke
 2010-03-03 12:10
#133973 #133973
User since
2010-03-01
5 Artikel
BenutzerIn
[default_avatar]
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)

View full thread strukturierung perl code