Skip to main content

parse_and_run_string

Function parse_and_run_string 

Source
pub fn parse_and_run_string(
    code: &str,
    interp: &mut Interpreter,
) -> PerlResult<PerlValue>
Expand description

Parse and execute a string of Perl code within an existing interpreter. Tries bytecode VM first, falls back to tree-walker on unsupported features. Uses Interpreter::file for both parse diagnostics and __FILE__ during this execution.