arrayref Questions

1

Solved

I am new to perl. I am trying to use join with a array reference, but it is not working. Here is my code. my $arr = { 'items' => ('home', 'chair', 'table') }; my $output = join(',', $arr-&g...
Yonit asked 18/9, 2013 at 11:5

3

I can't get arrayrefs passed into a C function using Inline C. I would like some help, please. First, just to prove I can get Inline C to work, I'll pass a scalar value to a C function: #!/usr/bi...
Engineman asked 17/8, 2013 at 18:4

2

if((scalar keys ($this->{'libraries'}->{$y}->{'cellHash'})) == 0){ This is the line where I am getting the "Type of argument to keys on reference must be unblessed hashref or arrayref" ...
Kinser asked 13/6, 2013 at 5:58

2

Solved

In Perl, you can assign to a variable a reference to another variable, like this: my @array = (1..10); my $ref = \@array; And, as it is a reference, you can do something like this and both varia...
Exception asked 6/4, 2013 at 3:35
1

© 2022 - 2024 — McMap. All rights reserved.