Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
How to merge the above code to single statement#!/usr/bin/perl while(<DATA>){ s/\%EX\%/TOdelete/; s/\%BC\%/TOdelete/; s/\%EC\%/TOdelete/; print $_; } __DATA__ %BX% HI %EX% %BC% %EC%
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: merge code
by BrowserUk (Patriarch) on Sep 01, 2009 at 07:39 UTC | |
|
Re: merge code
by moritz (Cardinal) on Sep 01, 2009 at 08:07 UTC | |
|
Re: merge code
by ambrus (Abbot) on Sep 01, 2009 at 11:04 UTC | |
|
Re: merge code
by JavaFan (Canon) on Sep 01, 2009 at 09:58 UTC | |
|
Re: merge code
by Anonymous Monk on Sep 01, 2009 at 07:23 UTC | |
|
Re: merge code
by bichonfrise74 (Vicar) on Sep 01, 2009 at 18:31 UTC |