Think about Loose Coupling | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
You should improve style if you want someone to go over your
code.
In long subroutines, name your formal parameters by using my ($nm1, $nm2) = @_ to avoid dealing explicitely with @_ within the subroutine. Best code is self-commenting code by savvy use of variables names. Incidentally, another possible style is to name actual parameters as well. This is especially interesting if some actual parameters may be missingIf you follow my first advice, this one will be unecessary in this particular case. But here it is anyway, you should use slices:
[\&db_clk, $_[1], $_[2], $_[3], $_[4] ] -- stefp -- check out TeXmacs wiki In reply to Re: A Tk callback problem
by stefp
|
|