Just cat a file through it and voila! It's pretty.
Any ideas? I figure that I should be able to do something that combines the two regular expression lines, then do something else to mask the data, but I'm new to the whole obfuscation thing. :^)#!/usr/local/bin/perl -n @x = ( { Begin => "{", End => "}" }, "(?:Attribute|Motion|Transform|Wo +rld|Frame)" ); $i-- if(/^\s*$x[1]End/ && $i); /^\s*\#/?s/^\s*//:s/^\s*/" "x(4*$i)/e; s/^(\s*$x[1](Begin|End).*)$/$1.(m|\#[\{\}]$|?"":" #$x[0]{$2}")/e; print; $i++ if(/^\s*$x[1]Begin/);
Thanks!
hoaf
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: I'm amusing myself trying to obfuscate a little script ...
by dbwiz (Curate) on Sep 02, 2006 at 09:47 UTC | |
|
Re: I'm amusing myself trying to obfuscate a little script ...
by chargrill (Parson) on Sep 03, 2006 at 06:39 UTC |