Skip to content

Instantly share code, notes, and snippets.

@bclennox
Created May 16, 2014 00:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bclennox/08e4767d4ab8800d57b4 to your computer and use it in GitHub Desktop.
Save bclennox/08e4767d4ab8800d57b4 to your computer and use it in GitHub Desktop.
JAPHs
perl -e '@_=(shift,pop);$*={ord"<"=>[sub{printf"%s",shift;join$&,
@ARGV[$.,$|]}]};$\=(($,)=$"=~?( )?)&&qq; $_[$#_]\n;;print+chop$,,
$*->{$=}->[$[]->($_)foreach($_[$|++]);' Just another Perl hacker,
$_=join$\,(2**4*7,43*428863*8956249,5*389141*80257369,2*7*37*42569*7348511,7*613
*4703*7633091,2**2*3*7*661*997*1229*2251-2000);print(pack"c",oct$&)while/(...)/g
sub'_{select$_[3],$_[2],$_[1],$_[0]}$:=?y??y::::q;:;;$:.=qq:-:;
@%=map{$:.$_}qw:) ) ( / o P P:;sub'__{@_=$c->(@:);while($_=pop)
{unless($*){$*=length;if(m+^$"*$+i){_$|if(length$&<$-)}else{$.=
shift@%}}if(/ /){pop@|for(length..++$*);push@|,$,for(length..--
$*)}print+chr$:;push@|,chop;print for@|;substr($.,0,1)=q$;$if$.
=~/P/;print$"x(27-@|).$..$"x5;_$=/1.e3;length&&redo;$**=length;
@|=(split($\,join$",split/\s/,join+q,,,@|),$,=$");next if@_}}$c
=sub{map{join$!,map{chr hex}/../g}@_};++$|;$:=2*@%-$|;$-=47%$:;
@:=qw;2c72656b636168 6c726550 2020202020202020 61426c6175736956
2020202020 4c4f424f43 20202020 6176614a 726568746f6e61 7473754a
;;__;print+chr@:
perl -we 'BEGIN{$SIG{__WARN__}=sub{($;=shift)=~s;((?<=:.).+(?="));print
$+.$";e}}sub Perl{$_=$::_;map{y,(), ,,$..=$_}split$\;local$,.=chop$.;qq
]$,$.,\n]}$_=$|++||shift;$\=eval;print $Just, "another"' Perl\(hacker\)
$_=q$,197+,27S,137,08(),09-K,13,11%1332230!b#>:!+'t{$;srand$=;sub'x{$$$x+=pop}$
qw=sub{$q++;$i[pop@a]=pop};unshift@a,x$_ for(map{reverse+split$,}/(\d*)!/g);&{$
qw}($+)while(s=,}?(\d{2})==x);$t=y*3012**d?reverse+split$i[@i]:die$_;@f=map$i[$
_]?chr$i[$_]:chop$t,0..--$q+length;print+chr(int(rand(58)+65)^ord)for@f,m$JAPH$
@bclennox
Copy link
Author

Things have changed in Perl since I wrote these, so a couple of them emit warnings, but they all still work:

$ sh derefjaph 2> /dev/null
$ perl intjaph
$ perl typojaph 2> /dev/null
$ sh warnjaph
$ perl xorjaph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment