True. Since the value(s) for @Counter$router is going
to be array, manipulating that hash was making things
complex for me.

If I use a hash (%Counter), what do I have to do such
that the resulting value for $Counter{$router} is an
array.

Thanks
Ravi
--- Wiggins d Anconia <[EMAIL PROTECTED]> wrote:
> 
> 
> > Hi: I have a existing variable called $router
> which is
> > "192.168.1.1". I want to create a array which
> looks
> > like @Counter192.168.1.1. 
> > 
> > @Counter.$router does not seem to work. 
> > 
> > Thanks in advance
> > Ravi
> 
> The first question is why?  I suspect first that the
> dots in the name of
> the variable will not be allowed for obvious reason,
> second you are
> trying to use symbolic references which are frowned
> upon, and prevented
> assuming you are doing 'use strict' (you are aren't
> you?).
> 
> So what are you *really* trying to do?  I will
> suggest a hash as usually
> this type of problem is solved by their use....
> 
> http://danconia.org


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to