On Mon, Sep 03, 2001 at 10:45:16PM +0100, Jose Abilio Oliveira Matos wrote:
> 

FOUND!

diff -u -p -r1.5 reLyX.in
--- lib/reLyX//reLyX.in 2001/08/31 07:54:05     1.5
+++ lib/reLyX//reLyX.in 2001/09/03 21:46:38
@@ -14,11 +14,13 @@ $^W = 1; # same as 'perl -w'
 use vars qw($lyxdir $lyxname);
 
 my (@maybe_dir);
-my $mainscript = "reLyXmain.pl";
+my $mainscript;
 my $relyxdir;
 
 # Do this in a BEGIN block so it's done before the 'use lib' below
 BEGIN{
+# Variables may not be assigned before the BEGIN block
+$mainscript = "reLyXmain.pl";
 # This points to LyX library dir, e.g. /usr/local/share/lyx
 $lyxdir = "@LYX_DIR@";
 # This is just "." if you compiled from the source directory


... and there was much rejoycing.


> > >   I really, really prefer python.
> > > 
> > >   And the code is so much readble...
> > 
> > But so much less fun... :-)
> 
>   Come on, that's not true. You can overload operators, use functional
> programming tools as I did in my last program. If that is not fun, used with
> classes I don't know what is. ;-)
> 
>   You can add a __cal__ method to a class making it a functor, and using it
> everywhere a function can be used. I don't even dream it how to do it in
> perl... ;-)

Oh, I'm not arguing against Python; whenever a friend try to convert me to
C#, I answer Python.  And I don't know either language yet ;-)

> 
> > And you know that Amir's code is particularly readable
> 
>   Why do you think that protesting I'm still hacking reLyX code? ;-)
>   No only readable but also clean. Thanks, *Mr* Perl. ;-)

Yep.

>   
> > -- 
> >     Yves
> 
> -- 
> José

-- 
        Yves

Reply via email to