perl question (dynamic arrays?)

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Joel Dudley
Date:  
Subject: perl question (dynamic arrays?)
Solved my problem, don't waste your time on my banter.

- Joel

-----Original Message-----
From: Joel Dudley [mailto:Joel.Dudley@developonline.com]
Sent: Friday, December 22, 2000 3:54 PM
To: Plug-Discuss (E-mail)
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

________________________________________________
See http://PLUG.phoenix.az.us/navigator-mail.shtml if your mail doesn't post
to the list quickly and you use Netscape to write mail.

Plug-discuss mailing list -
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss