File:Hello World Perl GTk2.png

Hello_World_Perl_GTk2.png(498 × 447 pixels, file size: 53 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

https://upload.wikimedia.org/wikipedia/commons/5/54/Hello_World_Perl_GTk2.png

Summary edit

Description An example Hello world program, written in Perl and displayed with GTK+ 2.
Date
Source Own work
Author Isilanes

Text content edit

As required by the GNU Free Documentation License, a Transparent copy of the text contained in the image follows: Consequencies will never be the same.

#!/usr/bin/perl -w

use strict;
use Gtk2 '-init';

# Create main window:
my $mw = Gtk2::Window->new('toplevel');

# Create main positioning table:
my $t = Gtk2::Table->new (1,2,0);
$mw->add($t);

# 'Hello world!' label:
my $label = Gtk2::Label->new('Hello world!');
$t->attach_defaults($label,0,1,0,1);
$label->show;

# Button to quit:
my $button = Gtk2::Button->new('Quit');
$t->attach_defaults($button,0,1,1,2);
$button->signal_connect( 'clicked' => sub { exit } );
$button->show;

# Main loop:
$mw->show_all;
Gtk2->main;
0;

End Sub

Licensing edit

This screenshot either does not contain copyright-eligible parts or visuals of copyrighted software, or the author has released it under a free license (which should be indicated beneath this notice), and as such follows the licensing guidelines for screenshots of Wikimedia Commons. You may use it freely according to its particular license. Free software license: gvim and the Xfce window manager is free software, the trivial self-made program is published under the following license:

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 2.5 Generic, 2.0 Generic and 1.0 Generic license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Note: if the screenshot shows any work that is not a direct result of the program code itself, such as a text or graphics that are not part of the program, the license for that work must be indicated separately.


I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
This licensing tag was added to this file as part of the GFDL licensing update.
You may select the license of your choice.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current21:47, 27 August 2019Thumbnail for version as of 21:47, 27 August 2019498 × 447 (53 KB)Kreuzschnabel (talk | contribs)even more recent theme
19:02, 4 December 2010Thumbnail for version as of 19:02, 4 December 2010448 × 508 (46 KB)Vinhoverde~commonswiki (talk | contribs)more recent theme
14:56, 6 May 2007Thumbnail for version as of 14:56, 6 May 2007461 × 509 (41 KB)Isilanes~commonswiki (talk | contribs){{Information |Description=An example Hello world program, written in Perl and displayed with GTk2 |Source=self-made |Date=May 06, 2007 |Author= User:Isilanes }}

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata