since evaluating one-liners is a popular option for compilers, i've implemented it in the Parrot Compiler Toolkit.
view the patch here: http://perlsix.org/svn/parrot/revision/?rev=24795>
the first difference adds '-e' as a valid command line option.
the next set of differences refactors argument processing out of the 'command_line' method into its own method, 'process_args'. this should allow greater flexibility for compilers based on PCT::HLLCompiler.
the last two differences process the '-e' option: if the option was set, the 'eval' method is called to process the line of code that was passed.