Jul 22, 2014, 2:01 AM
Post #1 of 4
Problem extracting an expression
I'm trying to extract an expression from a line. Here's what I'm doing:
my $exp = $line =~ m/[FAR PASCAL|FAR PASCAL_CONV]\ (.*)\(/gi;
with $1 I get the expression I want, but also the sring PASCAL !
The $line exp is of the type:
FAR PASCAL what_i_want(etc...)
FAR PASCAL_CONV what_i_want(etc...)
What am I doing wrong...?