in reply to Check if perl code is valid

See thread starting at "Syntax Error Checking". Short answer: "you can't".

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: Check if perl code is valid
by marius (Hermit) on Jan 15, 2001 at 04:03 UTC
    I may be missing something here, but couldn't you check the return value of a system('perl -c...')?

    (and before this gets --'d too much, explain why it's a bad idea..)

    -marius