Thread Arrayslice (16 answers)
Opened by Crian at 2004-03-09 11:41

havi
 2004-03-09 11:45
#80767 #80767
User since
2003-08-04
2036 Artikel
BenutzerIn
[Homepage]
user image
Code: (dl )
1
2
3
4
5
6
7
8
#!/usr/bin/perl

use warnings;
use strict;

my @array = ("1", "2", "3", "4", "5");

print $array[2]; # funzt


Code: (dl )
1
2
3
4
5
6
7
8
#!/usr/bin/perl

use warnings;
use strict;

my @array = ("1", "2", "3", "4", "5");

print @array[2]; # Scalar value @array[2] better written as $array[2]...

View full thread Arrayslice