PHP also inherits shell's here doc syntax, e.g. <<EOF . Not sure if Perl has that.
Actually PHP started out as a bunch of cgi-bin scripts, if I recall. It was very much "a shell for the web".
It kind of annoys me that they all require $ on the left, whereas shell only requires it on the right, which somehow makes more sense to me, e.g.
a=$b # shell
$a = $b # PHP and I think PerlInteresting - it makes it look like Bash uses $ to “read” from the variable, while in PHP/Perl $ only indicates that the rest of the symbol _is_ a variable.
It does.
>>It kind of annoys me that they all require $ on the left
Larry Wall says he went that direction to make namespace clashing between $dog, @dog, %dog, and "sub dog {}" (scalar, array, hashtable, function) a non-issue.
http://www.wall.org/~larry/natural.html ("Disambiguation")
The dollar sign does kinda look like a loose piece of shoestring, though
with each category had it's own optional syntax, many language will avoid this through context in which the symbol is, thus (+ a 1) equates (+ (deref a) 1), but he meant that it was a choice and not an obligation and some systems used $ or other syntactic constructs.
This is false they are not sigils at all. _ and $ are legal variable names in Javascript.