Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

BooK (2612)

BooK
  {book} {at} {cpan.org}
http://paris.mongueurs.net/
Yahoo! ID: philippe_bruhat (Add User, Send Message)

Obfuscation [plover.com]. Pink [axis-of-aevil.net]. HTTP::Proxy [cpan.org]. YEF [yapceurope.org]. Fishnet [perl.org]. Kapow [cpan.org]. Cog's [perl.org] bitch [cpan.org]. Invitation [perl.org]. White [perl.org] Camel [perl.org]. Nuff' said.

Journal of BooK (2612)

Tuesday January 15, 2002
12:47 PM

Obfuscation and core hacking 101

[ #2147 ]

Well, this new obfu has been long overdue (since YAPC::Europe 2001 auction), and I just started some real coding today (oh my gawd, I reinstalled Perl at work, which means I'll probably be less efficient (my job doesn't require any Perl skills)).

This yet another script to print a witty(?) message. (Sorry Dave, I really wanted to output an image, but I also wanted to give you this script. So I'll code this one for you, and if I ever get 'round to output an image, this other one will be also for you too (although later).)

While reading Effective Perl Programming (aka "The Shiny Ball Book"), I learnt a trick about substr which I immediately wanted to try. After trying it a little more than reasonable, the scripts I wrote with this trick stopped "working". They didn't DWIM anymore. I suspect it's some kind of a "bug" (actually it's more like a feature that doesn't work but is never used, except by people like me. Yuck.) in substr.

I began to look at the source. But I am not a Perl core hacker, so I could only track the problem to a few macro-filled lines. Now I should read perlhack, write a full test case to prove my point, check if it still doesn't work with bleadperl, and either ask for help on p5p (without a patch?) or try to fix this myself. Since this non-working feature is never used, I guess I have all the time I want... :-)

Had this "feature" worked, I suppose I'd have just used this trick for Dave's obfu. Which I do, but it's more difficult to do without, and takes longer... I am glad I am not doing this on my spare time! ;-)

(And no, don't ask, I won't tell you... It's mine!)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Well, je dois dire que cette mystérieuse feature excite ma curiosité.

    If you want to get to core hacking, read also perlguts, use perlapi for reference, and find Simon's tutorials -- I haven't any URL handy but Google should be able to help, as usual.

    Also, if you've found a bug, use perlbug. Or do you want to keep it sekret ? ;-)

  • Not secret, but it's so insignificant, I would not really call this a bug... Maybe an "unsuspected misbehavior".

    Anyway, je vois que tu es français (or live in France, at least): I suppose you are not the only Perl hacker in Lyon. Never thought about creating Lyon.pm? We have already found [mongueurs.net] the perfect place [mongueurs.net] for the meeting!

    • Yeah, I know this Café.

      About creating Lyon.pm.... neat idea, but I don't know much Perl hackers here.

      • I suppose creating the group will attract other Lyon Perl hackers. Get in touch with the other French Perl Mongueurs [mongueurs.net] (mostly Paris.pm [mongueurs.net] people) at mongueurs[at]mongueurs.net.

        There's already Toulouse [pm.org] and Marseille [pm.org], why not Lyon?

        Et pourquoi on continuerait pas en français par mail ? mongueurs(à)mongueurs.net :-)