Skip to content
Easily add GUI to Perl programs.
Branch: master
Clone or download
Latest commit a219ff0 Jul 8, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
Blank 03/07/2019 18:57:45 Jul 3, 2019
Chatroom 08/07/2019 15:50:06 Jul 8, 2019
Hello 08/07/2019 15:50:06 Jul 8, 2019
Notes 08/07/2019 15:50:06 Jul 8, 2019
atlastk 08/07/2019 17:08:47 Jul 8, 2019 08/07/2019 15:50:06 Jul 8, 2019
LICENSE 14/06/2019 17:09:27 Jun 14, 2019 08/07/2019 15:50:06 Jul 8, 2019

Perl version of the Atlas toolkit

For Perl

Version 0.10.0

A fast and easy way to add a graphical user interface (GUI) to your Perl programs.

With the Atlas toolkit, both front and back ends are handled by the same code, and the programs will also be reachable from all over the internet.

Only basic knowledge of web technologies are required (no JavaScript knowledge required). And, with the Atlas toolkit, you can easily add a GUI to a programs originally designed to have a CLI, so the users of this programs can choose which interface they want to use.

Hello, World!

Here's how a Hello, World! type program made with the Atlas toolkit looks like:

Little demonstration

  • git clone
  • cd atlas-perl
  • perl Hello/

For a live demonstration: (other live demonstrations:

Source code:

use Atlas;

my $body = '
<div style="display: table; margin: 50px auto auto auto;">
  <input id="input" maxlength="20" placeholder="Enter a name here" type="text"
         data-xdh-onevent="Submit" value="World"/>
  <div style="display: flex; justify-content: space-around; margin: 5px auto auto auto;">
   <button data-xdh-onevent="Submit">Submit</button>
   <button data-xdh-onevent="Clear">Clear</button>

sub acConnect {
    my ($hello, $dom) = @_;


sub acSubmit {
    my ($hello, $dom) = @_;

    $dom->alert("Hello, " . $dom->getContent("input") . "!");

sub acClear {
    my ($hello, $dom) = @_;

    if ( $dom->confirm("Are you sure?") ) {
        $dom->setContent("input", "");


my %callbacks = (
    "" => \&acConnect,
    "Submit" => \&acSubmit,
    "Clear" => \&acClear,


Content of the repository

The atlastk directory contains the Perl source code of the Atlas toolkit.

All other directories are examples.

To run an example, launch perl <Name>/, where <Name> is the name of the example (Blank, Chatroom…)


The Atlas toolkit is also available for:

For more information about the Atlas toolkit, go to

You can’t perform that action at this time.