Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: The @_ array and the lexical variables

by choroba (Cardinal)
on Apr 16, 2018 at 11:52 UTC ( [id://1212986]=note: print w/replies, xml ) Need Help??


in reply to Re^2: The @_ array and the lexical variables
in thread The @_ array and the lexical variables

No, it's the magic behind @_ and calling a subroutine that causes the aliasing. Normal arrays don't alias.

Another aliasing construct if for:

my $x = 1; for my $y ($x) { $y++; } print $x; # 2

See also Data::Alias .

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^4: The @_ array and the lexical variables
by G4143 (Novice) on Apr 16, 2018 at 12:08 UTC
    OK. Thanks for the clarification.

Log In?
Username:
Password:

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

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

    No recent polls found