in reply to regex ???
The second thing is that your expression needs to be
You need to localize $data (if you want to be strict-compliant, which is a "Good Thing"(tm) ...). You also need to put $data in array context, because the match-regex returns a list, not a scalar.my ($data) = $fileinfo =~ /^(.*?)\*{4}/s;
------
/me wants to be the brightest bulb in the chandelier!
Vote paco for President!
|
|---|