On Fri, Apr 4, 2008 at 8:46 AM,  <[EMAIL PROTECTED]> wrote:
> Hi
>
>  I am trying to regex a make output line (g++) and don't get it together.
>  What I want is:
>
>  All lines where the -c option does not occure, neither before nor after the 
> -o option and then
> extract the portion after the -o option.

if (! $var =~ /\s-c\s/ and $var =~ /\s-o\s/) {
  $var =~ /\s-o\s(.*)/;
  print $1;
}

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to