in reply to Problem with parameters in subroutines
On the other hand, you can write the subroutine in a way it expects a parameter:
sub mywrite { my $candidate = shift; print "$candidate->{firstname} $candidate->{surname}:$candidate->{ +id}\n"; }
This still look wrong, though. What's the relation between $guest and $kandydatkonkursu?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with parameters in subroutines
by aatrox (Initiate) on Jun 02, 2014 at 12:24 UTC | |
|
Re^2: Problem with parameters in subroutines
by aatrox (Initiate) on Jun 02, 2014 at 12:30 UTC |