Thread hashref an sub und mehr (4 answers)
Opened by chmod777 at 2010-11-19 20:23

bianca
 2010-11-19 20:53
#142894 #142894
User since
2009-09-13
6991 Artikel
BenutzerIn

user image
Meinst Du soetwas?

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/perl -w
use strict;
use warnings;

my %hash = (a=>'b',c=>'d');
call_sub (\%hash);
sub call_sub {
    my ($local_hashref) = @_;
    print "erhalte: fuer a: " . $local_hashref->{a} . "\n";
    print "erhalte: fuer c: " . $local_hashref->{c} . "\n";
}
10 print "Hallo"
20 goto 10

View full thread hashref an sub und mehr