Thread hashref an sub und mehr
(4 answers)
Opened by chmod777 at 2010-11-19 20:23
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 |