in reply to Difference between a perl script & shell script
(You don't type the '>' characters -- they'll show up automatically.)$ for i in `ls` > do > echo "found this: $i" > done
So, one difference is, a shell script could be typed in one line at a time in a terminal window, and it would work. Python has this same sort of interactive "shell". Perl's interpreter isn't really interactive like that (though it does offer the -e option for making "one-liners").
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Difference between a perl script & shell script
by Perl Mouse (Chaplain) on Dec 19, 2005 at 16:30 UTC | |
|
Re^2: Difference between a perl script & shell script
by Hue-Bond (Priest) on Dec 19, 2005 at 15:49 UTC | |
by revdiablo (Prior) on Dec 19, 2005 at 18:12 UTC | |
by QM (Parson) on Dec 20, 2005 at 02:10 UTC | |
by JohnMG (Beadle) on Dec 19, 2005 at 18:36 UTC | |
by qq (Hermit) on Dec 19, 2005 at 23:33 UTC |