in reply to Problem with parameters in subroutines
sub write { my ($contestant) = @_; print "$contestant->{'nazwisko'} "; print "$contestant->{'imie'}"; print ":$contestant->{'id'}\n"; }
it's hard to tell from the code given¹ how to best call write()
If your claims are right, this should work write($kandydatkonkursu) ...
...but I think it should rather be write($guest)!
Cheers Rolf
( addicted to the Perl Programming Language)
¹) including Polish(?) variable names mixed with English ... ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with parameters in subroutines
by aatrox (Initiate) on Jun 02, 2014 at 12:21 UTC | |
by LanX (Saint) on Jun 02, 2014 at 12:30 UTC |