Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Compile perl code/files via STDIN
February 1, 2005, 1:07 pm
rate this thread
Re: Compile perl code/files via STDIN
> 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?
> thx mseele
If I understand you correctly, you want to provide your code by typing
directly from the command line, rather than executing a pre-existing
file containing perl code. Is this correct? If so, at your shell,
and press enter. Perl will now patiently wait for you to enter the code
you wish to execute. When you've entered all the code, send the
end-of-file code (CTRL-D on most systems). Perl will execute what
If you want a more interactive environment, perhaps you want the perl
debugger. The easiest way to launch the debugger is:
perl -d -e1
Read about the debugger in
Hope that helps,
- » FAQ 3.24 How can I get "#!perl" to work on [MS-DOS,NT,...]?
- — Previous thread in » PERL Discussions