rgb96 has asked for the wisdom of the Perl Monks concerning the following question:
I'm still relatively new to perl, so I'm sorry if this makes no sense. I'm writing a program that controls five circuits in our lab, and automates the running of tests on those circuits. I'm using Gtk2 and a module to make the overly complicated tree view into a simple list. According to the author of the module, simplelists can be treated as arrays. At one point, I am trying to shift something off of one simple list and push it onto the other. Trouble is, when I do this, I get what looks to me like a pointer. Something like this "ARRAY(0x98630b8)". This seemed to work fine last week, so I don't know why it changed its mind. I put a print right after my shift statement to see if I could isolate the problem, and that is what it prints out. Can someone tell me why I am getting this value and not the element in the array?
$environment = shift @{$Envs->{data}}; print $environment;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Shift returning pointer
by toolic (Bishop) on Mar 16, 2009 at 16:58 UTC | |
|
Re: Shift returning pointer
by bellaire (Hermit) on Mar 16, 2009 at 16:23 UTC | |
by rgb96 (Acolyte) on Mar 16, 2009 at 18:09 UTC | |
by bellaire (Hermit) on Mar 16, 2009 at 18:11 UTC | |
by rgb96 (Acolyte) on Mar 16, 2009 at 18:56 UTC | |
by bellaire (Hermit) on Mar 16, 2009 at 19:04 UTC | |
| |
|
Re: Shift returning pointer
by ELISHEVA (Prior) on Mar 16, 2009 at 16:25 UTC | |
|
Re: Shift returning pointer
by shmem (Chancellor) on Mar 16, 2009 at 16:29 UTC | |
|
Re: Shift returning pointer
by Bloodnok (Vicar) on Mar 16, 2009 at 16:25 UTC |