shell scripting gurus?

Les Mikesell lesmikesell at gmail.com
Fri Jun 6 05:57:36 UTC 2008


Smoot Carl-Mitchell wrote:
> 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.

Except he made his version consistent, as opposed to the shell...

-- 
   Les Mikesell
    lesmikesell at gmail.com





More information about the ubuntu-users mailing list