in reply to syntax for calling a function
So, even though the somesub() syntax is preferred ( and most correct), be prepared to see other weird constructs. Everytime I write a sub, I usually put-command=>[\&raiseit,$win]) # passes $win as first arg # instead of widget or event # not a 100% foolproof rule
as it's first line, just to be sure what I'm getting. Sometimes I surprised by what comes in.sub somesub{ print "@_\n"; .... .... }
|
|---|