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...
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...
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" ...
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.