OpenBSD 4.1: Puffy Strikes Again (O'ReillyNet)
Posted May 6, 2007 7:55 UTC (Sun) by
jengelh (subscriber, #33263)
In reply to:
OpenBSD 4.1: Puffy Strikes Again (O'ReillyNet) by Richard_J_Neill
Parent article:
OpenBSD 4.1: Puffy Strikes Again (O'ReillyNet)
>perl -e'$_=q#: 13_2: 12/o{>: 8_4) (_4: 6/2^-2; 3;-2^\2: 5/7\_/\7: 12m m::#;y#:#\n#;s#(\D)(\d+)#$1x$2#ge;print';
And for those stuck with such, try this:
perl -MO=Deparse -e '$_=q#: 13_2: 12/o{>: 8_4) (_4: 6/2^-2; 3;-2^\2: 5/7\_/\7: 12m m::#;y#:#\n#;s#(\D)(\d+)#$1x$2#ge;print';
$_ = ': 13_2: 12/o{>: 8_4) (_4: 6/2^-2; 3;-2^\\2: 5/7\\_/\\7: 12m m::';
tr/:/\n/;
s/(\D)(\d+)/$1 x $2;/eg;
print $_;
It's so much easier to read, so why not use it should you stumble across such code.
(
Log in to post comments)