Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Not an ARRAY reference error

by ikegami (Patriarch)
on Mar 29, 2021 at 20:25 UTC ( [id://11130556]=note: print w/replies, xml ) Need Help??


in reply to Not an ARRAY reference error

You want

@{ $self->{column} } # Infix notation
or
$self->{column}->@* # Postfix notation

When using the infix dereferencing syntax, the braces can only be omitted when the block amounts to a simple scalar.

@{ $ref } # ok Derefs $ref @$ref # ok Derefs $ref @{ $self->{column} } # ok Derefs $self->{column} @$self->{column} # XXX Derefs $self

See Mini-Tutorial: Dereferencing Syntax.

Seeking work! You can reach me at ikegami@adaelis.com

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11130556]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 21:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found