acidblood has asked for the wisdom of the Perl Monks concerning the following question:
I have a small substitution problem. I've searched extensively on google, on the super search and tried numerous different test but I just can't get it right.
Let's say I have a text file that contains normal and special 'perl' characters. I would like to remove some detail...
Example of my file:
ZZ<<;ght;''d;\r\n\t\t\t\t\t;$_;LicBpack;'c*'y=eval;perl$@pop&&die@;D9
I would like to discard all the following:
y<<;''\r\n$_pack$_'c*'=eval@&&die
or if it's more readable:
y << ; '' \r \n $_ pack $_ 'c*' = eval @ && die
All suggestions welcome . . .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: String Substitution...
by BrowserUk (Patriarch) on May 16, 2008 at 00:59 UTC | |
by acidblood (Novice) on May 16, 2008 at 09:37 UTC | |
|
Re: String Substitution...
by toolic (Bishop) on May 16, 2008 at 00:59 UTC | |
|
Re: String Substitution...
by graff (Chancellor) on May 16, 2008 at 05:49 UTC |