Just another Perl shrine | |
PerlMonks |
TK param passingby jsteng (Beadle) |
on Apr 24, 2018 at 01:42 UTC ( [id://1213460]=perlquestion: print w/replies, xml ) | Need Help?? |
jsteng has asked for the wisdom of the Perl Monks concerning the following question:
I would see codes written like this: The above codes I understand, knowing how many parameters and how to intercept the params in a subroutine. However I dont understand this code:
Can anyone explain how the params are passed when it is constructed in this manner: -command => [ \&ScrollAll, $yscroll, [$p1, $p2, $p3, $p4, $p5]] In the above sub's code my ($sb, $wigs, @args) = @_; What is assigned to $sb? What is assigned to $wigs? Is there any other way of passing params when used with -command? And can that like be written like: thanks
Back to
Seekers of Perl Wisdom
|
|