Hi Gerald,
On Mon, May 21, 2001 at 06:09:25PM +0200, Gerald Richter wrote:
> you can set EMBPERL_OBJECT_FALLBACK, then this page is execute if a page
> isn't found.
Yes, I know about EMBPERL_OBJECT_FALLBACK, but here I'm doing an
Embperl::Execute (of a component) not the initial
EmbperlObject::Execute, so I don't think this applies? An
Embperl::Execute fallback option would be really useful here if such a
thing does exist ...
> You can get the search path via
>
> [-
>
> $r = shift ;
>
> $path = $r -> Path ;
>
> -]
Great - if there are no better options I can at least do a search of the
path myself.
Cheers,
Gavin
> ----- Original Message -----
> From: "Gavin Carr" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, May 21, 2001 2:34 AM
> Subject: Executing file that doesn't exist
>
>
> > Hi Gerald et al,
> >
> > I want to be able to do an Embperl::Execute on a file that potentially
> > doesn't exist and catch the error (within EmbperlObject, so it's not
> > trivial to just do a -f on the file). I've tried the obvious things -
> > the 'errors' parameter, $optDisableEmbperlErrorPage, $optReturnError,
> > etc - but I keep getting Embperl 'Not found <filename>' errors. Is there
> > a way around this?
> >
> > Alternatively, is there a way of accessing the search path EmbperlObject
> > sets up so I can check for the file manually?
> >
> > Cheers,
> > Gavin
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]