pass parameters from perl to csh scripts

I use csh a lot but I don't really write csh scripts. Now I have a need to implement a security check (written in perl; verify an user input security code) into a csh script. Here is the senario:

#csh

  1. call the perl script
  2. if the perl script returns 'true', pass on;
    if the perl script returns 'false', exit.

Could anyone kindly show me a sample csh code - how to pass an output from perl to csh script? (I can comfortably write perl scripts although not an expert - decision on using perl to implement the security check has several system-wide considerations)

Thank you in advance.
joe

In general, any command output can be captured in a variable with `..` or $(..).
However, I doubt $(..) would work in csh ( Sorry, I don't knw csh scripting ) but you can surely try `..`.

something like:

set return_val = `/path/to/perl_script/.....`

Also have a look at Csh Programming Considered Harmful