Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^6: $1[ (reserved != allowed)

by LanX (Saint)
on Oct 28, 2017 at 13:55 UTC ( [id://1202232]=note: print w/replies, xml ) Need Help??


in reply to Re^5: $1[ (reserved != allowed)
in thread $1[

> in Modern_Perl book, as an example is given @3 as incorrect name:
These are invalid Perl identifiers: ... my @3; # cannot start with number

Which is correct, cause my declares a lexical var, no exceptions needed there

DB<475> my @3 =(1,2,3) Can't use global @3 in "my" at (eval 679)[C:/Perl_64/lib/perl5db.pl:64 +6] line 2, ...

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Replies are listed 'Best First'.
Re^7: $1[ (reserved != allowed)
by rsFalse (Chaplain) on Oct 28, 2017 at 15:59 UTC
    Ah, ok, now it is more clear for me. Thank you.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2024-04-23 08:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found