Re: conditional use()

2005-11-04 Thread JupiterHost.Net
Jeff 'japhy' Pinyan wrote: On Nov 4, JupiterHost.Net said: I'm beating my head against the wall trying to remember where I saw this / how to do this: In some documentation I remember seeing a use statement that had some sort of condition. use if ...; perldoc if YES Jeff you ro

Re: conditional use()

2005-11-04 Thread Jeff 'japhy' Pinyan
On Nov 4, JupiterHost.Net said: I'm beating my head against the wall trying to remember where I saw this / how to do this: In some documentation I remember seeing a use statement that had some sort of condition. use if ...; perldoc if -- Jeff "japhy" Pinyan% How can we ever be

conditional use()

2005-11-04 Thread JupiterHost.Net
Howdy Perl Studs I'm beating my head against the wall trying to remember where I saw this / how to do this: In some documentation I remember seeing a use statement that had some sort of condition. Its the same idea as how: use Foo if $WE_DO_WANT_FOO; reads (but of course that doesn't wor

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