#!/usr/bin/perl -w # this echos a japh ######## $r=qq q\qq; sub d{chomp foreach(@_);}$q=sub(@) {($just =$_&#91;0&#93;)=~ s/.*\/(&#91;^ &#93;*).*\n/$1/g;$_&#91;1&#93; += qq.\: ..(join "",grep{/^j/;} keys %::).qq&#91; &#93;;$_ &#91;0&#93;=~s/.*s\s(.*)s/$1/g;*y=\${$,}&#91;2&#93;;$f="$1$2$1" ."$2$1".qq 323 if ${$,}&#91;0&#93;=~m/ (\w)\s.(.)/g;$q= $1 if $f=~/.(.)/;$_=0xf9;(($_&#91;2&#93;=${$1 if($_&=$_ -147,1)&&($_&#91;1&#93;=~/ (.*) /)}).=$_&#91;2&#93;)=~s|(p)|h|g ;$g=qr r(.)....r;$y=~y yly y;$_|=3;($z="fuck"& " _")=~s/\s*//;$just=~/.(..).$/;$x=pack$f,$d, $f,chr,lc$z,$1; $d=~s/$g/${$r}not$1/;&d;@_=(@_&#91; 0..2&#93;,$just,$x);@x=@_;$_=join" ",@x;@{$,}=${$,} ;}; $ARGV&#91;0&#93;=<${0}>;$,="_";@_=<>;*y=*d;&$q;($,= qx"@_")=~s/.*: //g;chomp($,);$_=0;print"","\n";
note that reading this code might not be appropiate if you are under a certain age, since I am using that f-word.

Replies are listed 'Best First'.
RE: my first try
by BBQ (Curate) on May 01, 2000 at 06:54 UTC
    Humm... I couldn't get it to run on Win32 (the machine I'm at as I write this). Earlier I was on my Linux machine and it ran - no problem!

    Is there something particular about this ob-code that would make it non-portable?

    #!/home/bbq/bin/perl
    # Trust no1!
      What version of Perl are you running on your Win32 machine? From a quick glance, the code uses some features ("EXPR foreach" and qr) that were added in, I think, Perl 5.005. If you're using an older version, you'll get syntax errors.
        hummm... That's odd. This is what I've got:
        Orders, Sir? perl -v This is perl, version 5.005_03 built for MSWin32-x86-object (with 1 registered patch, see perl -V for more detail) Copyright 1987-1999, Larry Wall Binary build 522 provided by ActiveState Tool Corp. http://www.ActiveS +tate.com Built 09:52:28 Nov 2 1999 [snip]
      I use qx to execute a "echo some text" command since perl for win does not have fork this might be a problem, your machine has no echo command. and you should not change the first line :-)
      perl -v This is perl, v5.6.0 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2000, Larry Wall Binary build 613 provided by ActiveState Tool Corp. http://www.ActiveState.com Built 12:36:25 Mar 24 2000 ... will run this fine.
RE: my first try
by turnstep (Parson) on Apr 28, 2000 at 20:11 UTC
    foreach?? :)