For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > December 2006 > Re: How to prevent duplicated entry in array of the hash-Help PLEASE PLEASE









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: How to prevent duplicated entry in array of the hash-Help PLEASE PLEASE
Cyrus

2006-12-21, 7:02 pm

>
> $DiskErr->{$sys}->{$el->{'id'}} = { status => $el->{'status'} };
>
> That will give you a data structure that looks like this:
>
> {
> 'BR5500' => {
> '5' => {
> 'status' => 'NOT-IN-SERVICE',
> }
> },
> }
>
>

Thank you so much Sherm, I will use the above per your request as one
disk can have only one status at a time...before I rest my case How do
I access disk , is it sompthing like this:

my $diskStatus = $DiskErr->->{$sys}->{$el->{'id'}} ;

Again thank you & you are my hero & life saver....Oh by the way How am
I doing with reply with toping :-)

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com