jkepler
Novice
Jul 22, 2014, 2:01 AM
Views: 21837

Problem extracting an expression



Hi, I'm trying to extract an expression from a line. Here's what I'm doing: my $exp = $line =~ m/[FAR PASCALFAR 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...) or FAR PASCAL_CONV what_i_want(etc...) What am I doing wrong...? Kind regards, jkepler
