in reply to Help with cause of "Modification of a read-only value attempted at ..."
our configthing $cfg = new configthing;
You don't show us what your routine configthing::new looks like. This is where $cfg would get set. Maybe Data::Dumper can tell you more:
... use Data::Dumper; our $cfg = configthing->new(); print Dumper $cfg; emonitor::list_hosts($cfg, \@hosts);
I really, really wonder though, why you would need to (re)bless $cfg into configthing in the package emonitor.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help with cause of "Modification of a read-only value attempted at ..."
by shriken (Priest) on Sep 28, 2010 at 14:25 UTC | |
by Corion (Patriarch) on Sep 28, 2010 at 14:32 UTC |