[ create a new paste ] login | about

Link: http://codepad.org/pH4eyMlt    [ raw code | output | fork ]

kinopiko - Perl, pasted on Oct 28:
1
2
3
4
5
6
7
8
#! perl
use warnings;
use strict;

my $allDirArray = [{dir => "b"},{c => "d"}];
my $i = 0;
my $tempDir = ${$allDirArray}[$i]{'dir'};
print "$tempDir\n";


Output:
1
b


Create a new paste based on this one


Comments: