perl question (dynamic arrays?)

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: JoelDudleyJoel.Dudley@DevelopOnline.com
Date:  
Subject: perl question (dynamic arrays?)
Hello All,
    I was given a comma delimited excel file to process. It contains a
list of NT domains and the software installed in them. I need to find out,
for example, how many instances on win 2k are installed in each domain. I
thought PERL would be great for this but I can't seem to hammer anything
out. I thought I could store the software of each domain in a list but I
would need to create a list with the domain name which comes from a variable
created by split! I am sure that my thinking is all wrong here but if anyone
has a qucik Idea I would appreciate it. Here is the snippet I have so far:"


#!/usr/bin/perl

@invlist = ();

open (INV, "/root/inventory.csv") || die "cannot open inventory file";
        while ($line = <INV>) {
                ($garbage1,$software,$domain,$garbage2,$garbage3) =
split(/,/,$l
ine);
                push(@$domain,$software);
        }


Is it possible to dynamicly create an array from a variable like that?

- Joel