will...@welliver.org escribió/skribis/wrote/scrit (2025-03-20T23:15:17-0400):

> How about something like:
> 
> $ pike -e '(program)"test"'

I didn't know that possibility.  Now I remember I read something about
`(program)` and files in the manual, but didn't used it yet.

> $ pike -e 'return catch((program)"test")?1:0'
> test.pike:1:Undefined identifier x.
> $ echo $?
> 1

Clever.  I didn't know there's a `catch` function beside the `catch`
block.

Thank you!

-- 
Marcos Cruz
http://programandala.net

Reply via email to