in reply to Bug in script, regex help req extreme urgent
Hello sid.verycool, and welcome to the Monastery!
Please note that when a regular expression is assigned to a string prior to its use in a match, the string should be quoted using Perl’s qr// operator. That is, a line such as:
my $match = "(?<=module )$ARGV.*?([\\(;])";
is better written:
my $match = qr/(?<=module )$ARGV.*?([\\(;])/;
See Regexp Quote Like Operators in perlop for the advantages of using this form of quoting.
Hope that helps,