Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Compile perl code/files via STDIN

Reply
Thread Tools

Compile perl code/files via STDIN

 
 
mseele
Guest
Posts: n/a
 
      02-01-2005
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
 
Reply With Quote
 
 
 
 
Paul Lalli
Guest
Posts: n/a
 
      02-01-2005
"mseele" <> wrote in message
news: om...
> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
peek at stdin, flush stdin Johnathan Doe C Programming 5 4 Weeks Ago 04:30 PM
cant compile on linux system.cant compile on cant compile onlinux system. Nagaraj C++ 1 03-01-2007 11:18 AM
Detect if stdin is via keyboard or via < file? srbstar@sbcglobal.net C Programming 3 08-31-2005 11:20 AM
Compile perl code/files via STDIN mseele Perl Misc 2 02-02-2005 02:12 PM
Reading stdin once confuses second stdin read Charlie Zender C Programming 6 06-21-2004 01:39 PM



Advertisments