shell scripting gurus?

Smoot Carl-Mitchell smoot at tic.com
Thu Jun 5 21:35:03 UTC 2008


On Thu, 2008-06-05 at 16:25 -0500, Les Mikesell wrote:

> > The '$' tells the shell to interpolate the value of the variable IP.
> 
> I should know better than to post something without trying it... I 
> always get it backwards in perl too, where it does want the $ on the 
> assignments.

That is because in Perl '$' indicates the variable stores a scalar value
and is not the interpolation indicator.  In Perl the '$' is a part of
the variable name. They look the same, but semantically they are quite
different. Of course, Larry Wall, (the inventor of Perl) was well versed
in shell scripting and he created a language which would look familiar
to shell scripters who use sed, awk, etc in their scripts.
-- 
Smoot Carl-Mitchell
System/Network Architect
smoot at tic.com
+1 480 922 7313
cell: +1 602 421 9005




More information about the ubuntu-users mailing list