Dear Obfuscating Perl Programmer People,

Please put a #!/usr/bin/perl at the top of your obfuscatory perlishness, so that we can all just copy and paste into a text file and use the magick -x switch to easily view the products of your creative minds.

And, uhm, perl -Mstrict -I. -STUl0awse 'print reverse split("", "\n!raey wen yppah")'

Love,

mischief

(watch me get downvoted for this one...)

Replies are listed 'Best First'.
Re: A Small Request
by extremely (Priest) on Dec 28, 2000 at 14:56 UTC
    Hrm... You should really try and make those extensions spell something and scalar reverse is cooler: perl -Mstrict -I. -awS00Tl0Use 'print scalar reverse "\n!raey wen yppah"'

    And "-W00swaTl0Use" would amuse too.

    --
    $you = new YOU;
    honk() if $you->love(perl)

      You're right, I should have made more interesting use of the switches. I actually sat staring at the letters and numbers for 5 minutes trying to think of something that might be vaguely amusing (if only to myself), but I gave up because (and I blame this entirely on my family) I've got a bit of a slow brain at the moment due to a quite, erm, festive festive celebration.

      I disagree about using scalar reverse though - I thought it better to needlessly use a function to convert the list to a scalar, instead of just asking perl explicitly to do it. (Actually, japhy's goto sig was tempting, but I couldn't get away with ripping it off here, more's the pity.)

      It was only really a half hearted attempt at anything remotely obfuscated though. I could never come up with anything half as twisted as most of the posts I've seen, but I thought I should put something since this is the Obfuscated code category.

Re: A Small Request
by chipmunk (Parson) on Dec 28, 2000 at 08:49 UTC
    Especially for obfuscated Perl code on this site, I like to use the d/l code link at the bottom of the node, which presents the code (and just the code) in plain text for easy copying. This avoids any problems with long lines or indenting. Obfuscated code is often sensitive to minor formatting issues. :)

    -x is a nice option, though, and doesn't get the attention it deserves.

Re: A Small Request
by epoptai (Curate) on Dec 29, 2000 at 10:35 UTC
    I usually develop on win but usually publish on unix, so often use:
    #!perl -w #!/usr/bin/perl -w
    and switch when necessary.