Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Returning an array the way it was written

by ww (Archbishop)
on Mar 15, 2017 at 14:56 UTC ( #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
Node Status?
node history
Node Type: note [id://1184711]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2020-09-18 13:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (112 votes). Check out past polls.

    Notices?