Tableau ASCII en perl

perl_image

Voila, ce matin je m’ennuyais , alors je vous poste un petit tableau ascii fait en perl:

#!/usr/bin/perl

#//////////////////////////////////////////////////////////////////////////////////////////////////////////////
# American Standard Code for Information Interchange Table //
# By neontrax //
#//////////////////////////////////////////////////////////////////////////////////////////////////////////////

print "////////////////////////////////////////////////////////////////////\n";
print "// American Standard Code for Information Interchange Table //\n";
print "////////////////////////////////////////////////////////////////////\n";
$ascii=33;
for($i=33; $i<127; $i++ )
{

$hexa=hex($i);

$code=chr($ascii);
print "\t------------------------------------------------------\n";
print "\t|Décimal:$i | Hexadécimal:$hexa | Caractère:$code | \n ";
$ascii++;
}
print "\t------------------------------------------------------\n";c

Laisser un commentaire

Pas encore de commentaires.

Syndication RSS Identifiant URI du rétrolien

Répondre

Entrez vos coordonnées ci-dessous ou cliquez sur une icône pour vous connecter:

Logo WordPress.com

Vous commentez à l'aide de votre compte WordPress.com. Déconnexion / Changer )

Twitter picture

Vous commentez à l'aide de votre compte Twitter. Déconnexion / Changer )

Photo Facebook

Vous commentez à l'aide de votre compte Facebook. Déconnexion / Changer )

Connexion à %s

  • Calendrier

    • juillet 2009
      L Ma Me J V S D
           
       12345
      6789101112
      13141516171819
      20212223242526
      2728293031  
  • Recherche

Suivre

Get every new post delivered to your Inbox.