Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Can't use string ("8") as an ARRAY ref while

by kcott (Archbishop)
on Apr 17, 2018 at 07:23 UTC ( [id://1213043]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -E 'use strict; my @x = qw{a b c}; my $y = @x; say $y->[1]'
    Can't use string ("3") as an ARRAY ref while "strict refs" in use at -
    +e line 1.
    
  2. or download this
    $ perl -E 'use strict; my @x = qw{a b c}; my $y = \@x; say $y->[1]'
    b
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-19 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found