Some of the file-checking operations (-f, -d, etc.) are taken directly from sh.
"There is no shame in being self-taught, only in not trying to learn in the first place." -- Atrus, Myst: The Book of D'ni.
| [reply] |
| [reply] |
| [reply] [d/l] [select] |
A few other sh influences (sorry if this duplicates a few others... I merely skimmed):
- The fact that it's a "script": there's no "main" function that has
to be declared and executed first
- The type of a variable is implicit in the variable name
- The quoting style for "this${var}that" (putting curlies around name as a delimiter when adjacent to more word chars"
| [reply] |
| [reply] [d/l] [select] |
I think that there was some lisp influences as well.
Notably, "map".
| [reply] |
I was under the impression that eval was one of the most lispish feature of perl.
"Most self-respecting scripting languages such as BASIC (some versions, anyway), Perl, Tcl, LISP, and Python have a feature that clearly sets them apart from systems programming languages like C: the ability to treat character strings as little programs."
Advanced perl programming, chapter 5"
| [reply] |
I don't see much sh influence though.
I can see many, though, and in addition to those pointed out by others it seems to me that sigils, which are by now so charachteristic (also) of Perl, have not been mentioned yet. But maybe they're inherited from something else - I'm not a language historian after all... oh and while we're at it, maybe it's worth reminding that their syntax is somewhat different in sh's, as they (limitedly) declinate there, as they do in tcl (IIRC).
| [reply] |