in reply to Bad ascii art
I'd say the idea is not too complicated -- for every + you increase the ascii code, for every - you decrease it. In between, at every non-space character, you print the character corresponding to it. Or something like that, fact is it took me about 2 minutes to figure this out, and I think it's because the main body of the program is obvious (the for through each character loop).
How about the following suggestions to `improving the non-readability of your code':
How about the following suggestions to `improving the non-readability of your code':
- Use special Perl variables ($/ $= $,)
- Avoid overusing obvious keywords (eval, split), go for regexps if possible
- When using regexps, feel free to use characters other than forward slashes
- When quoting strings, feel free to use other quoting techniques (qq[])
$==109;for(split//,q{ / ++++++ ++o-------=++ ++ ++_--------------<+ ++,+++++++++ +/ -------- -- -/ { ){m?\s??():s:-|+:$=$&$&:?eval:print chr($=)}
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Bad ascii art
by muntfish (Chaplain) on Aug 26, 2004 at 08:30 UTC | |
by perldeveloper (Scribe) on Aug 27, 2004 at 08:58 UTC | |
by muntfish (Chaplain) on Aug 26, 2004 at 15:05 UTC |
In Section
Obfuscated Code