On 12/1/12 4:52 PM, "Mr Dash Four" <[email protected]> wrote:
>
>>> If $0 is followed by '_' (e.g., $0_switch) then you must use ${0}. The
>>> preprocessor is looking for '$' followed by Perl 'word' characters
>>> (alphanumerics + '_').
>>
>>
>> Here's a patch that avoids this issue.
>That was indeed the case - perl seems to handle $X variables a bit
>differently from bash, which was a bit unexpected for me. The patch you
>attached does indeed fix this issue.
The two handle (scalar) variables the same, at least on the right side of
assignments. My regular expression was just looking for any sequence of
'word' characters after '$'; it wasn't distinguishing the case where the
charater after '$' was a digit from the other cases.
-Tom
You do not need a parachute to skydive. You only need a parachute to
skydive twice.
------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
DESIGN Expert tips on starting your parallel project right.
http://goparallel.sourceforge.net/
_______________________________________________
Shorewall-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-devel