Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: strange looking code

by kilinrax (Deacon)
on Oct 20, 2000 at 18:08 UTC ( [id://37663]=note: print w/replies, xml ) Need Help??


in reply to strange looking code

I assume the line that's confusing you is the following:
@A{keys %r} = keys %r;
Essentially, it's doing the same thing as the following code, which should be a lot easier to understand:
foreach $key (keys %r) { $A{ $key } = $key; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-26 00:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found