Just a slight modification using the $& variable =D
$x='justice ,tan south jer,nor the pearl,her packer';
$_='ice'; foreach $y (split ',', $x) {$i=length;
while($i) {$z=quotemeta;$y =~ s/[$z]//;$z =~ s/$&//;$_=$z; $i--;}
$_=$y;s/ //g;print&&print $&;}
janitored by ybiC: Retitle from one-word "Update" to avoid hindering site search | [reply] [d/l] |
The flow is easy to read, the idea behind it is rather obvious (although i'm not saying it's not interesting, I think it is neat), and there are too many redundancies. I don't mean to seem like a jacka$$ or anything, but this does not seem like obfuscation -- in my honest opinion.
Well, to really make my point, I've spent some time myself rewriting exactly your idea with my own concepts of obfuscation, meaning this is a bit closer to what I believe obfuscation is about:
print join ' ', (
map{$,=~s &$\&&& while s;[$,,];;;[$,=$_]->[/i/]}@{[qw]
ice justice tan,south,jer, nor,the,pearl, her,packer
]]})
[1..4];
| [reply] [d/l] |
thank you,
your example is great. I'll keep working on the techniques.
thanks for the comment.
| [reply] |
Don't mention it, glad you didn't take it the wrong way.
| [reply] |