Thread defined @array deprecated (6 answers)
Opened by lze at 2016-01-21 19:59

lze
 2016-01-21 20:58
#183559 #183559
User since
2015-06-21
13 Artikel
BenutzerIn
[Homepage] [default_avatar]
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/perl -w
use strict;
my @Tree = (
{
array => "",
foo => 'bar'
},
{ array => [
{ bar => 'foo'},
]
},
);
my $tree = \@Tree;
print "ohne  defined .$/"  if  @$tree[0]->{array};
print "defined.$/"  if  defined @$tree[0]->{array};
# defined
print "ohne  defined .$/"  if  @$tree[1]->{array};
print "defined.$/"  if  defined @$tree[1]->{array};
# ohne  defined .
# defined.
# array bzw subtree ist manchmal kein array .
perl -e'sub lze_Rocks{print/(...)/ for shift;}sub{&{"@_"}}->("lze_Rocks")'

View full thread defined @array deprecated