I notice that the Perl Scripting node doesn't provide access to flow variables within the Perl script.
A clunky workaround would be to define the preface script as a flow variable and inject any required data that way. It'd be nicer to have direct access to them within the script though (e.g. via a %flow_variables hash that mirrors the %column has for data).
Paul B