At 14.03 1998.04.11, David Steffen wrote: > I have been using Peter Chen's Butler.pm with MacPERL version 5.0.7r1m >with great success. This module interfaces with an XFCN, Butler.XFCN, >provided by Everywhere, the publisher of the Butler database engine. I >just upgraded to MacPERL version 5.1.9r4, and now get the message: > >"# Cannot open XFCN file, Butler.XFCN." > > Another XFCN (clipboard.XFCN) in the same directory, works just fine, so >it is not a path problem. If I remove the check that makes sure >Butler.XFCN has been opened, the program fails on the first attempt to use >the XFCN, so indeed Butler.XFCN is not being opened. > > I would very much appreciate any hints or suggestions as to how I can >proceed to debug this. Hm. I have noticed that LoadExternals does not return false on failure and true on succeed. Rather, it is a fatal error if it fails, and returns nothing on succeed; so checking the return value grants you nothing. Now, I know nothing about Butler.XFCN, but this seems to work for me ("work" meaning it is obviously using the XFCN): #!perl -wl MacPerl::LoadExternals('Butler.XFCN'); print DBConnectInfo(); It prints "Invalid session ID" for me, so I know it is working at least minimally, that MacPerl is loading the XFCN, and can run at least part of it. On another note, I wish I had known about this sooner; it would have been nice to mention in the book that you can access a SQL database this easily with MacPerl (even though it is only the one SQL database). Oh well. :-) Hope this helps, -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10 1FF7 7F13 8180 B6B6']) #== New Book: MacPerl: Power and Ease ==# #== Publishing Date: Early 1998. http://www.ptf.com/macperl/ ==# ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch