On Wed, Dec 18, 2002 at 07:40:26PM -0500, Jon Oringer wrote:
> method im using isn't working.. Here is the code..  Can anybody see
> anything wrong with this?
> 
>         open(G,">/tmp/razor$randnum");
>         print G $bod;
>         close G;
>         my $razor_res = `cat /tmp/razor$randnum | razor-check`;
>               ...
> 
> $razor_res never contains any data
> 
> Any ideas?

Sure, $razor_res will only equal the output from razor-check, which
is typically nothing.  You want to check the return value.  Look at
"perldoc -f system", or if you feel like a challenge, hook into the
Razor perl modules in your code. :)

-- 
Randomly Generated Tagline:
"Why don't the Jews ever see Moses like in a sticky bun?"
         - Bill Maher on Politically Incorrect

Attachment: msg00480/pgp00000.pgp
Description: PGP signature

Reply via email to