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;
In reply to Shift returning pointer by rgb96
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |