> yes that is exactly what i mean. i want to do somthing like this:
>
> $ perl - c
> print "Test\n";
>
> and now i want to get the infos of the compilation (sytax ok or errors...).
> after that i want to put the next perl code into the
> process, i don't want to close the
yes that is exactly what i mean. i want to do somthing like this:
$ perl - c
print "Test\n";
and now i want to get the infos of the compilation (sytax ok or
errors...). after that i want to put the next perl code into the
process, i don't want to close the process and reopen a new. i
> i want to open a perl process and enter the code/files to compile via
> STDIN. i know it is possible. but how?
> does somebody know a tutorial or something like this which explains how
> i can compile perl code via STDIN?
$ perl
print "Hello from STDIN\n";
^D
Hello from STDIN
$
If the answers
Michael Seele wrote:
hi,
Hello,
i want to open a perl process and enter the code/files to compile via
STDIN. i know it is possible. but how?
does somebody know a tutorial or something like this which explains how
i can compile perl code via STDIN?
Do you mean:
perl -e 'print "Hi\n";'
perl script