in reply to Re: Perl as a teaching aid
in thread Perl as a teaching aid

I never post cause im not english but, teaching perl? try this:

#!/usr/bin/perl use strict; print "Enter a character or a word: "; chomp($_=<STDIN>); print "$_->[1]: $_->[0]\n" for map{[unpack("B*",$_),$_]}split'';
Update: Golf time:

perl -wle '$_=<STDIN>,chop;map{print"$_: ",unpack("B*",$_)}split//'


$anarion=\$anarion;

s==q^QBY_^=,$_^=$[x7,print