On Mon, Jan 19, 2004 at 09:25:49AM -0600, Shay Hill wrote: > version 2.5.8 > > I have written a working perl script to read colors from my .fvwm2rc > file and build appropriately colored icons. The script *works* from the > command line, but fails when called from .fvwm2rc. with > FvwmPerl load create-icons.fpl > > Here is a minimal version of my perl script. There are some lines > commented out. The script works, but is of course useless, without these > lines. With these lines, the output file fails to open when called from > .fvwm2rc. > > #!/usr/bin/perl > open(FVWM, "/home/shay/.fvwm/.fvwm2rc"); > undef $/; > $_ = <FVWM>; > close FVWM; > # /SetEnv FGColor "(.*[^"])"\n/g; > # $FGC = $1; > open(OUT, ">/home/shay/.fvwm/iconify.xpm"); > print OUT "\". c $FGC\",\n"; > close OUT;
This doesn't appear to do anything useful what so ever, in fact i'd be surprised if it ever passed perl syntax check. `perl -cw script.pl` Contact me off-list with information on what you need to achieve and i'll try to help ye out. -- -Scott McWhirter- | -kungfuftr- -- 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 [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
