How to get an array back out of a hash?

2012-05-11  Source: Original Site  Category:Perl  Views:1 


If I throw an array inside of a hash:
%somehash = ('somekey', ['one', 'two'])

how do I get the array back out? I get can individual values from the array with:

but if I try to get the entire array:

I get some funky array junk:

Any ideas?

Related articles
  • How to get an array back out of a hash? 2012-05-11

    If I throw an array inside of a hash: %somehash = ('somekey', ['one', 'two']) how do I get the array back out? I get can individual values from the array with: $somehash{somekey}[0] but if I try to get the entire array: @somehash{somekey} I get some

  • Oracle How to get the application back with edit links??? 2012-02-29

    Please help me this. This is very urgent in the present situation. i need to complete the project which i have done in this site called my application is given as run application only in edit attributes, that was given after finishi

  • Ubuntu How to get Logitech G5 back button working... 2014-10-18

    How to get Logitech G5 back button working...? I tried looking at Ubuntu hacks book but I don't know what Zaxis means Hack 47. Configure Multibutton Mice Seven buttons, a tilt/scroll wheel, and who knows what else? Find out how to put all those bells

  • how to get dot array about font from windows fonts library? 2013-09-20

    how to get dot array about font from windows fonts library?

  • How to get taskbar icons back on the taskbar 2012-10-27

    HTTP/1.1 200 OK Cache-Control: no-cache Pragma: no-cache Content-Type: text/html; charset=utf-8 Content-Encoding: gzip Expires: -1 Vary: Accept-Encoding Server: Microsoft-IIS/7.5 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Date: Sat, 08 Aug 201

  • Oracle How to get the array in output parameter with in the loop? 2014-04-09

    I have procedure with input and output values which will return Table Type Array as a output. In that i am looping through the data in cursor and store that into array. In my below code i am looping through all the data and pass those data into one m

  • Ubuntu HOW TO: Get Sound Volume Back for Creative Audigy Soundcard After Jaunty Upgrade 2015-02-23

    If you have a Creative Audigy soundcard and noticed the volume gone after upgrading Ubuntu to Jaunty, here is how to get it back. This might also apply to many other sound cards out there, so give it a try if you have different hardware but the same

  • Ubuntu Reinstalled Windows - how to get boot menu back? 2012-03-16

    everyone. So here's the deal. I reinstalled Windows a couple of weeks ago and of course I lost my dual boot setup. I don't know how to get the boot menu back. I've attached a document showing what my disks look like in Disk Management in Computer Man

  • How to get wireless internet back on laptop after installing Windows 7? 2012-05-30

    I have installed Windows 7 on my laptop. My laptop is wireless capable, but after I installed Windows 7 my laptop can't get wireless internet (my wireless internet button is turned on). How can I get wireless internet back on my computer?

  • How to get 1D arrays from matrix. 2012-11-08

    Hi, I have a matrix. And I need to get 1D arrays from my matrix. For example, I have follow matrix: 123 456 789 So it looks like 3 arrays: 147, 258, 369. But I got "Index out of range exception" in this code: int[] b = new int[n];for (i = 0; i < n

  • Ubuntu Evil makefile removed important files, how the get the files back? 2013-03-09

    I got this makefile: SRCS = main.cpp graphics.c collisions.c list.c init.c misc.c room.cpp units.cpp game.cpp APPNAME = output CFLAGS = -g -Wall -pedantic -ffast-math `sdl-config --cflags` LFLAGS = `sdl-config --libs` -lSDL -lSDL_image -lSDL_ttf -lSD

  • Ubuntu How to get my SUDO back? 2013-05-23

    I guess I was playing where I should not have. Now I cannot perform SUDO nor can I set user accounts. How might I get this control back. It is just a standalone machine.:confused:

  • How to get the Array to Stick?? 2014-01-23

    I have an array, I press submit and the array no longer is found. How do I get the array to keep for future use in processing? Here is a small example im working with, thanks for the help. (Yes Ive read the manual sections and browsed the forum histo

  • Ubuntu How to get your GUI back. Open video drivers do the best job 2014-06-21

    My Karmic Ubuntu kept hanging. I didn't know about Ctl-Alt-Prt Scrn-R, E, I, S, U, B (mnemonic = Reboot Even If System Utterly Broken) and so had to press the reset button several times a day. Eventually I traced it to the Screensaver: AntSpotlight.

  • how to get a array of user defined type(UDT) from VB 2014-09-18

    Could you tell me how to get a UDT array from VB in the C DLL? In the VB program: Private Type STDWORDS text1 As String * 25 text2 As String * 25 End Type Private Declare Function chou Lib "chou" (stdword() As STDWORDS) As Long Private Sub Form_Load(

  • Oracle How to get the Array values from Stored Procedure through OCI 2014-11-10

    I am new to OCI program , Could you please help me to get the values returned by the procedure PASS_INT in the package DEMO_PASSING_PKG to my C++ application through OCI. I have created a package which is shown below: CREATE OR REPLACE TYPE LONGARRAY

  • Image. How to get an array that works properly? 2015-01-18

    I am programming an image application for my thesis. I have got an image and I want to have the color of each pixel so I can make my own histogram. The problem is that I want to treat this histogram as an array but I don't know how to get it.I have f

  • Ubuntu How to keep from zooming back out after zooming in? 2012-12-10

    I can zoom in incrementally (I have it set to Super + right-click button), but I can also zoom in gradually with Super + scroll wheel. The problem is, when I zoom in with the mouse wheel it zoomes right back out again. Not only that, but it hardly zo

  • please help, how to get my data back into working arrays 2014-09-03

    Please help!! I've hit a wall and can't figure this out by myself! I have thousands of entries stored in a mysql database. They are formatted so I could use them as an array via PHP to be exact.. this is what the columns include in my database 024,08

  • How to get BYTE array allocated in Unmanaged DLL ??? 2013-10-26

    I’m using an unmanaged DLL wartime in C that exports the function: void Get (BYTE** pByte); This function fills the pByte with a BYTE buffer that is allocated inside the unmanaged DLL. How do I use this function from a C# code? I tried: [DllImport("U