in reply to Re^2: Difference between a perl script & shell script
in thread Difference between a perl script & shell script

That's not interactive, that's taking the source code via STDIN. There's a difference, namely in that interactive means you run one command, get the return value. Run another, get another return value. This is commonly known as REPL, or a Read Eval Print Loop. You can make one in Perl:

perl -le '@ret = eval and print "Returned [@ret]" while <STDIN>'

But it's not quite as fully featured as most interactive shells.

Replies are listed 'Best First'.
Re^4: Difference between a perl script & shell script
by QM (Parson) on Dec 20, 2005 at 02:10 UTC
    Have you tried perl -demo ???

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of