source: trunk/tp-perl/variable.pl @ 333

Last change on this file since 333 was 264, checked in by nanardon, 13 years ago
  • introduction, tableaux
File size: 232 bytes
Line 
1#!/bin/env perl
2
3use strict;
4use warnings;
5
6my $scalar = 'Hello World' . "\n";
7
8my @array  = (q{Hello World}, "\n");
9print $array[0] . "\n";
10
11# c'est pour l'exemple:
12my %hash   = ('Hello World' => "\n");
13print $hash{'Hello World'};
Note: See TracBrowser for help on using the repository browser.