You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/perl
|
|
my $arrays = [ '1', '2', '3', [ 'red', 'blue', 'green' ]];
|
|
for($i=0;$i<3;$i++){
|
|
print $arrays->[$i],"\n";
|
|
}
|
|
|
|
for($i=0;$i<3;$i++){
|
|
print $arrays->[3]->[$i],"\n";
|
|
}
|
|
print "@{$arrays}\n";
|
|
print "--@{$arrays->[3]}--", "\n"; |