Re: Compile perl code/files via STDIN

2005-02-02 Thread Dave Gray
>  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 don't think syntax checking mode has a batch option... AFAIK it's
just for one file at a time. What exactly are you doing that you're
concerned about interpreter startup time when checking syntax?

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Re: Compile perl code/files via STDIN

2005-02-02 Thread Michael Seele
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 only want 
to work with one process because of the speed
advantages i got when i must _not_ open a process for every file...
is this possible? do you know a information source in the www?
thx

Dave Gray wrote:
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 so far don't solve your problem, it might help to be
more specific about what exactly you're trying to do.
Dave
 

--
G & H Softwareentwicklung GmbH Tel.: +49(0)7451/53706-20
Robert-Bosch-Str. 23   Fax:  +49(0)7451/53706-90
D-72160 Horb a.N.  http://www.guh-software.de 



Re: Compile perl code/files via STDIN

2005-02-01 Thread Dave Gray
> 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 so far don't solve your problem, it might help to be
more specific about what exactly you're trying to do.

Dave

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Re: Compile perl code/files via STDIN

2005-02-01 Thread JupiterHost.Net

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.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]