Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Difference between a perl script & shell script

by revdiablo (Prior)
on Dec 19, 2005 at 18:12 UTC ( [id://517835]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://517835]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-25 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found