amoura has asked for the wisdom of the Perl Monks concerning the following question:
I need to capture the -I only and make it look like this :" -IE:\david\nbssbts\btsc\bld -IE:\david\nbsscis\dcsapp\bld \ --cxx_include_directory C:\Green\scxx -IC:\Green\scxx \ -IC:\Green\68000\include -IC:\Green\ansi \ "
Now I am able to capture the -I but they don't appear in different line also the main problem is it will capture the "--cxx_include_directory" which I don't need." -IE:\david\nbssbts\btsc\bld -IE:\david\nbsscis\dcsapp\bld -IC:\Green\scxx -IC:\Green\68000\include -IC:\Green\ansi "
my code is
if (index ($_, "-I") == 1){ { print OUTFILE substr ($_, 0, rindex ($_, "\\")), "\n"; } }
Edit by tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: New to perl ,,, help
by kvale (Monsignor) on Jun 26, 2002 at 17:00 UTC | |
|
Re: Transforming only parts of input
by Aristotle (Chancellor) on Jun 26, 2002 at 17:36 UTC | |
|
Re: Transforming only parts of input
by GhodMode (Pilgrim) on Jun 26, 2002 at 17:46 UTC | |
by flounder99 (Friar) on Jun 26, 2002 at 18:54 UTC | |
by Aristotle (Chancellor) on Jun 26, 2002 at 19:07 UTC |