On Feb 21, 9:46 am, [EMAIL PROTECTED] (Chas. Owens) wrote:
> On Wed, Feb 20, 2008 at 11:03 PM, <[EMAIL PROTECTED]> wrote:
>
> snip> Oh - I wanted to eliminate all members of the array that had more than
> > 10 instances of the same port. I was hoping that you could do
> > something like "count
On Feb 20, 10:26 pm, [EMAIL PROTECTED] wrote:
> Hi, thank you all for your input - I managed to get what I wanted
> done. Sorry I was not very clear on the issue, but it helped to write
> it out.
>
> Jim
Please ignore this post ^, I do not have a end solution yet.
--
To unsubscribe, e-mail: [E
> I have a feeling that I am going about this in the wrong
> way. Can I use hashes in a better way to sort the data based on the
> keys? Better yet, can I evaluate the number of keys that match each
> other?
I don't understand what that means.
John
Oh - I wanted to eliminate all members of
Hi, thank you all for your input - I managed to get what I wanted
done. Sorry I was not very clear on the issue, but it helped to write
it out.
Jim
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
I am reading in a file, building an array of information that I need
to evaluate:
while () {
if ($_ =~ m/stuff/) {
push(@data, {'vlan' => $vlan, 'host' => $host, 'mac' => $mac, 'port'
=> $port});
}
}
Small sample of @data:
vlan hostmacport
13 switch-1