in reply to regular expression matching array name
Your lookahead won't match the huge variety of Perl expressions that could be used to index an array, but that's okay, because all you need is to check for the opening [ anyway.
It looks like you copied this code from somewhere else and don't really understand it; I can't think of any other reason you'd be using a negative lookahead there instead of a positive one.
hdp.
|
|---|