Re: conditional use clause

2004-02-23 Thread Randy W. Sims
On 02/23/04 06:29, Gary Stainburn wrote: Hi folks. I'm moving on with my Trainset project and I've got to the point where I want to develop Trainset::Tk to create a user interface for someone setting in a signalbox. To do this, I've created Trainset/Tk.pm as below, and included a use Trainset

Re: conditional use clause

2004-02-23 Thread Paul Johnson
On Mon, Feb 23, 2004 at 11:29:50AM +, Gary Stainburn wrote: > Is there a way to only 'use Trainset::Tk' conditionally, or even better, have > it auto-detect the availability and simply ignore it if it's not there. I do that in the following fashion: BEGIN { eval "use Trainset::Tk" } # We

conditional use clause

2004-02-23 Thread Gary Stainburn
Hi folks. I'm moving on with my Trainset project and I've got to the point where I want to develop Trainset::Tk to create a user interface for someone setting in a signalbox. To do this, I've created Trainset/Tk.pm as below, and included a use Trainset::Tk; in my Trainet.pm. The problem I h