in reply to Re: run-time syntax checking
in thread run-time syntax checking

Some more thought is required, as one could pass

} do nasty stuff; ... my $foo = <<"}";
as $code.

This way, one could close the sub, execute whatever and keep the syntax correct by using the outer } as heredoc terminator.

Antonio

The stupider the astronaut, the easier it is to win the trip to Vega - A. Tucket

Replies are listed 'Best First'.
Re^3: run-time syntax checking
by diotalevi (Canon) on Jan 31, 2003 at 19:49 UTC

    There is no protection against malicious code without Safe and even then it can have unwanted side-effects: never returning and other DoS conditions.


    Seeking Green geeks in Minnesota