RE: Need help getting data from a structure..

2011-09-29 Thread Weidner, Ron
Can someone explain how to access $InstDesc?? Also please explain how I would access (that is read from or write to) to the $Severity scalar on the bottom structure.. Thanks in advance.. flk Sure I can help. (or guide you astray) #!/usr/bin/perl use strict; use warnings; my %PlcyActions

RE: Need help getting data from a structure..

2011-09-29 Thread Frank Kleinburg
List, First I would like to thank all who provided input.. With the help of the this list, I was able to figure out what I needed to change to get it all working.. And we have successfully kept VB out (Yippy!).. Now to the solution (note: I have copied the little test code and its output

Need help getting data from a structure..

2011-09-28 Thread Frank Kleinburg
Hello list, I've been playing with perl going back to the 4.x days, mostly simple scripts to monitor server or application daemons, kick off and manage backups, or read log files.. While some of these programs are fairly complicated, none have more than just tickled the more sophisticated

Re: Need help getting data from a structure..

2011-09-28 Thread Brandon McCaig
On Wed, Sep 28, 2011 at 10:33 AM, Frank Kleinburg fklei...@gmail.com wrote:        $Policy = {                NAME = $PlcyName,                DESCRPT = $PlcyDesc,                INSTNCE = { %Instance },        };        %Instance = (                $CondID = {                        

Re: Need help getting data from a structure..

2011-09-28 Thread 'lesleyb'
On Wed, Sep 28, 2011 at 09:33:50AM -0500, Frank Kleinburg wrote: Hello list, I've been playing with perl going back to the 4.x days, mostly simple scripts to monitor server or application daemons, kick off and manage backups, or read log files.. While some of these programs are fairly

Re: Need help getting data from a structure..

2011-09-28 Thread Brandon McCaig
On Wed, Sep 28, 2011 at 1:00 PM, lesleyb lesl...@herlug.org.uk wrote: $Policy-{INSTNCE} evaluates to a hash.  Then you ask Perl to access the value given by the key $CondID in that hash.  $CondID is a key to a reference to another anonymous hash.  But this time you don't use the '-' to get to

Re: Need help getting data from a structure..

2011-09-28 Thread Brandon McCaig
Frank: CCing the list since you didn't indicate that this was a private message. I'm assuming you meant to reply to all (which is probably what you should have done anyway). :) On Wed, Sep 28, 2011 at 12:55 PM, Frank Kleinburg fklei...@gmail.com wrote: Brandon, You nailed it.. The one change

Re: Need help getting data from a structure..

2011-09-28 Thread Rob Dixon
On 28/09/2011 15:33, Frank Kleinburg wrote: Hello list, I've been playing with perl going back to the 4.x days, mostly simple scripts to monitor server or application daemons, kick off and manage backups, or read log files.. While some of these programs are fairly complicated, none have more