Re: help with array within another array



ah. well in that case

@SESSION = ( \%nodeowner, \%nodeseverity );

On Feb 27, 2007, at 11:59 AM, Ravi Malghan wrote:

One correction: SESSION is just a single dimensional
array @SESSION.

Thanks
Ravi
--- Ravi Malghan <rmalghan@xxxxxxxxx> wrote:

Hi: I just can't seem to figure this out.
I am trying to declare two associative array
(%nodeowner and %nodeseverity) within another array
called %SESSION

For example
%nodeowner = ("node1", "john", "node2", "nancy");
%nodeseverity = ("node1", 5, "node2", 10);

How do I declare %SESSION containing %nodeowner and
%nodeseverity. And how do I access say the value
John
give node1 from the nodeowner array that is in
SESSION?

TIA
Ravi




______________________________________________________________________ ______________
Now that's room service! Choose from over 150,000
hotels
in 45,000 destinations on Yahoo! Travel to find your
fit.
http://farechase.yahoo.com/promo-generic-14795097

--
To unsubscribe, e-mail:
beginners-unsubscribe@xxxxxxxx
For additional commands, e-mail:
beginners-help@xxxxxxxx
http://learn.perl.org/







______________________________________________________________________ ______________
TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

--
To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx
For additional commands, e-mail: beginners-help@xxxxxxxx
http://learn.perl.org/



.



Relevant Pages

  • Re: help with array within another array
    ... you could make a hash with reference to hash values: ... it seems like you might want to consider using the node identifier as the first key in %SESSION, and make the value a reference to hash keyed by the owner and severity: ... I am trying to declare two associative array ...
    (perl.beginners)
  • Re: help with array within another array
    ... I am trying to declare two associative array ... (%nodeowner and %nodeseverity) ... How do I declare %SESSION containing %nodeowner and ...
    (perl.beginners)
  • Re: 2 dimension arrays
    ... > How do I declare an array as a session variable? ... as you have a *reference* to this array, there is really only one array ... >> Andrew wrote: ...
    (microsoft.public.dotnet.framework.aspnet)
  • help with array within another array
    ... I am trying to declare two associative array ... (%nodeowner and %nodeseverity) ... How do I declare %SESSION containing %nodeowner and ...
    (perl.beginners)
  • Re: help with array within another array
    ... I am trying to declare two associative array ... (%nodeowner and %nodeseverity) ... How do I declare %SESSION containing %nodeowner and ...
    (perl.beginners)