On Mon, Mar 18, 2013 at 11:46 PM, Ronald Weidner <xecro...@yahoo.com> wrote: > I need to execute a Perl program that is about 1000 lines of code long. The > Perl program is dynamically generated by another program. I would like to > execute the Perl program without first creating the Perl source code file. > In other words,' a solution that behaves like the source code for the Perl > script was piped in instead of being opened from a file. This is a Linux > system and the solution doesn't need to be portable to Windows. > > Has this been done? Any ideas or examples? > > >
You can just pipe a program into perl and it'll DWIM: $ echo 'print "Hello World, Perl $^V\n"' | perl -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/