in reply to Perl shell with input and output terminal

it exists yet: is psh Anyway i dunno if it is a good idea but if you want to explore the matter, remember that eval lets your program to be very near to the compiler, everytime. So you can have something simple as (with error cheching too!!) in few keystroke:
perl -ple "$_=eval||$@"

L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Perl shell with input and output terminal
by baxy77bax (Deacon) on Nov 27, 2015 at 11:36 UTC
    Ok, this is much much better than what I have :) But I really don't need so much functionalities. moreover, as I said, creating a shell is not so much of a problem. Bigger issue is to have a shell where you can write commands in the left side of your terminal and se a real-time output in the right side. I just thought there is some wrapper or screen emulator or something like that.

    Thank you :)

    Corion's solution is quite nice, but I worry about safety of such an approach. Open solutions an pipelines ar eusually safety hazards (This is my personal opinion!!!)

      Corion's solution is quite nice, but I worry about safety of such an approach. Open solutions an pipelines ar eusually safety hazards (This is my personal opinion!!!)

      Let's see if we can't sway your opinion. Please provide a specific example of a situation where one process writing to a file and another tailling it (just as in Corion's post) could lead to anything hazardous. Describe the specific hazard as you see it. Thanks.