some-usable-scripts/perl/essai2.perl

17 lines
266 B
Perl
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/perl
# Tableaux
@tab1 = ("lu", "ma", "me");
@tab2 = @tab1[1,2];
@tab2 = @tab1;
print $tab[0];
print $#tab1; # $# = index du dernier élément
$tab1[3] = "Je";
$tab1[30] = "Mon Langage Perl";
$#tab $_
@ARGV
$ARGV[0] # Le premier argument saisi
$#ARGV