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