in reply to
regex query
Sounds like you need a negative look-behind assertion.
@variables = m/(?<!\\)\$[a-zA-Z0-9_]+/g;
Comment on
Re: regex query
Download
Code
In Section
Seekers of Perl Wisdom