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

Re: Returning an array the way it was written

by ww (Archbishop)
on Mar 15, 2017 at 14:56 UTC ( [id://1184711]=note: print w/replies, xml ) Need Help??


in reply to Returning an array the way it was written

If your "array" is %names, that isn't an array in Perl's terminology; it's a hash; what PHP calls an "associative array."

And hashes do NOT maintain their input order (without the likes of Tie::Hash. If it's perl (nod to Vicar 1nickt, above) you're using, you might consider that. But first, read some of the help about arrays and hashes you'll find here... in Tutorials or Super Search and perhaps even read perldoc perltie (from your CLI).

And does the select part of line 1 means you're trying to print something pulled from a db? If so, Super Search and the Tutorials should also offer assistance.

Log In?
Username:
Password:

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

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

    No recent polls found