Thread Bei UTF-8 file wird erste Zeile nicht gelesen (9 answers)
Opened by crojay at 2011-06-10 10:05

pq
 2011-06-10 13:50
#149559 #149559
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
wie lange machst du schon perl?

Code (perl): (dl )
1
2
3
4
5
6
7
my %hash = ( a => 23 );
# zugriff auf die 23:
print "$hash{a}\n";

my $hashref = { a => 23 };
# zugriff auf die 23:
print "$hashref->{a}\n";


das erste ist ein hash, das andere eine referenz auf einen hash.

das sind 2 unterschiedliche variablen.

du fragst bei dir die eine variable mit exists ab und holst dann den wert aus der anderen. das kann ja wohl nicht funktionieren.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Bei UTF-8 file wird erste Zeile nicht gelesen