in reply to String Substitution...
use strict; use warnings; my $str = q{ZZ<<;ght;''d;\r\n\t\t\t\t\t;$_;LicBpack;'c*'y=eval;perl$@p +op&&die@;D9}; $str =~ s/\by\b//g; $str =~ s/\beval\b//g; $str =~ s/\bdie\b//g; $str =~ s/\\(n|r)//g; # alternation print $str, "\n";
prints:
ZZ<<;ght;''d;\t\t\t\t\t;$_;LicBpack;'c*'=;perl$@pop&&@;D9
Give it a try. If you still can not solve your problem, post some code that you have tried, and ask detailed questions.
|
|---|