Re: FVWM: Track->Scheduler and own functions

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Thu, 22 Jan 2004 21:53:38 +0000

On 22 Jan 2004 22:27:52 +0100, Mario Domg?rgen wrote:
>
> ,----
> | Can't use string ("gnomeicu_update") as a subroutine ref while "strict
> | refs" in use at
> | /usr/local/stow/fvwm-2.5.8/share/fvwm/perllib/FVWM/Tracker/Scheduler.pm
> | line 57.
> `----
>
> In your example on the manpage you used a small sub in place of the
> callback, but that will be harder to read for my subroutine, so i'm not
> sure what to do about that?!

You may still use the syntax from the example:

  sub { gnomeicu_update(); }

But of course, you may make gnomeicu_update to be a callback directly.

> I try &gnomeicu_update and
> &gnomeicu_update() but i haven't worked in both cases...

Both of these call the function.

Use \&gnomeicu_update as a reference to the function.

Regards,
Mikhael.
--
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 Thu Jan 22 2004 - 15:55:55 GMT

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