Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^7: Line numbers

by LanX (Saint)
on Mar 17, 2012 at 01:57 UTC ( [id://960109]=note: print w/replies, xml ) Need Help??


in reply to Re^6: Line numbers
in thread Line numbers

> fails because you are trying to index a scalar

No,it fails because it's undefined syntax

syntax error ... near ")["

and indexing a list always requires parens!

see perldata

A list value may also be subscripted like a normal array. You must +put the list in parentheses to avoid ambiguity.

Cheers Rolf

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-25 13:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found