[ic] "if file-e" functionality in user tag?

Jeff Fearn jefffearn at gmail.com
Sat Aug 6 21:55:08 EDT 2005


On 8/7/05, Jeff Boes <jeff at endpoint.com> wrote:
> 
> >
> > The -f file test -- which should be OK for testing for an image
> > file -- is allowed by default.  That means
> >
> >       if (-f $file) { do_something() }
> >
> > should work fine.
> 
> 
> Hmph. You might think so, but ...
> 
> Configuring catalog vanilla...UserTag 'veh_image' subroutine failed safe
> check: '-e' trapped by operation mask at (eval 381) line 17, <CONFIG>
> line 25.
> 
> UserTag 'veh_thumb' subroutine failed safe check: '-e' trapped by
> operation mask at (eval 383) line 12, <CONFIG> line 20.

-f will have the same effect as -e in this context. I believe Mike was
suggesting you use -f instead of -e.

Jeff



More information about the interchange-users mailing list