Compile perl code/files via STDIN

M

mseele

hi,
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
 
P

Paul Lalli

mseele said:
hi,
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,
simply type
perl
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
you've typed.

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
perldoc perldebug

Hope that helps,
Paul Lalli
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top