Re: FVWM: Arithmetics?

From: Felix E. Klee <felix.klee.fvwm_at_gmx.net>
Date: Tue, 22 Apr 2003 19:51:29 +0200

On Tuesday 22 April 2003 16:49, Mikhael Goikhman wrote:
> I thought I explained in the parent message why it should be:
>
> AddToFunc StartFunction
> + I ModuleSynchronous FvwmPerl
> + I . Module FvwmPager 0 %{ 5 }%

Thanks, now it works.

> Or, maybe it does not work for you because you changed the quote char
> using preprocess({ 'command' => 1, quote' => '*' }, q<$*>).

No, I didn't redefine the quote character. I have disabled preprocessing of
the whole configuration file. The problem is that variables defined during
this kind of preprocessing aren't available later for use with the "."
command. Therefore I moved all intitialization to init functions that are
called from StartFunction. This works very good and AFAICS I don't need
preprocessing of the whole config file anymore.

Some comments:
1. "." is very cool. Now that everything seems to work fine, please add it
   to the FAQ. And, as said before, include one or two simple examples that
   show that "." is usable with minimal Perl knowledge (eg. for adding
   variables).
2. It seems that with "." it is only possible to embed one Perl command in
   %{ ... }% at a time (i.e. not several Perl commands separated by ';').
   That should be made clear in the FAQ.

Felix

-- 
To contact me personally don't reply but send email to 
  felix DOT klee AT inka DOT de
--
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 Tue Apr 22 2003 - 12:52:52 BST

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