FVWM: Re: Re: FvwmTabs v1.3

From: parv <parv_fm_at_fastmail.fm>
Date: Sun, 19 Jan 2003 15:59:18 -0500

in message <20030119125129.A1868_at_deepblue.milkyway.com.au>,
wrote Scott Smedley thusly...
>
> Hi Parv,

helloo,


> Clicking the middle mouse button (2) on a tab will release the
> program for that tab.

ah, yes. yes, it does.

is this somehow dependent on the number of the current tab such that
it couldn't be part of the menu (popped up by 3d button mouse click
on "FvwmTabs")?


> > as a side note, why are you calling the non referenced named subs
> > via "&", e.g. "&showTab($tId, $tabNo);"? won't the named subs
> > will just work w/o "&", am i missing something?
>
> Both are valid Perl syntax. The '&' just means the subroutine
> doesn't have to be declared before it is used. I probably don't
> need it, but using '&' everywhere means I don't even have to worry
> about whether I should use it or not.

unless you are using non-parenthesis version of subs, it really does
not matter where you declare/define subs. if you do keep '&', then
you are wasting your efforts by defining prototypes as prototype
checking will be ignored.

perlsub(1) SYNOPSIS says it quite succinctly & clearly...

  To call subroutines:

     NAME(LIST); # & is optional with parentheses.
     NAME LIST; # Parentheses optional if predeclared/imported.
     &NAME(LIST); # Circumvent prototypes.
     &NAME; # Makes current _at__ visible to called subroutine.


  - parv

-- 
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sun Jan 19 2003 - 16:56:38 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:54 BST