The -c flag in Perl performs a syntax check (compile) without actually executing the program. This is useful for catching errors before running code. Option B (-c without filename) is incomplete, and option D (-e) executes inline code, not compilation.