Re: symbolic references

2004-02-04 Thread David Byrne
There will be similar descriptive data for each node, but it isn’t important for the structure of the tree. Question: How can I create a tree (i.e. a hash of hashes) given the above relationships? --- James Edward Gray II <[EMAIL PROTECTED]> wrote: > On Feb 4, 2004, at 1:38 PM

symbolic references

2004-02-04 Thread David Byrne
Greetings, I’m trying to generate a tree of nested hashes [of an arbitrary size]. Perhaps you could suggest a better solution. Currently I'm trying to use symbolic references according to the literature… but without much luck. Best regards, David My script is as follows (for now, I’ve tried to k

XML parse - hash of hashes

2004-02-03 Thread David Byrne
Greetings, I am fairly new to Perl and to XML and I’m trying to (1) parse a XML document (snippet attached), (2) update specified data using a hash of hashes parsed from another non-XML document (not shown), and then (3) write the updated data using the XML format of the original file in #1. Usin

Re: Looping through file for regex

2004-01-02 Thread David Byrne
Thank you James for both your advice and suggestions. I think that solved my problem. I'm learning... David --- James Edward Gray II <[EMAIL PROTECTED]> wrote: > On Jan 2, 2004, at 9:33 AM, David Byrne wrote: > > > Greetings, > > Howdy. > > > I'v

Looping through file for regex

2004-01-02 Thread David Byrne
Greetings, I've created a hash from an INPUT file and I'm trying to search for each key from the hash in a DATA file. However, I can't get my script to iteratively loop through the DATA file for each key. Instead it loops through DATA once for the first key. Below is some sample data, intended

automate web login

2003-11-24 Thread David Byrne
Greetings, I used CPAN (libwww-perl) docs as my main reference and generated the following script (trying 'content' as well as 'authorization_basic' for user id & pw), but keep getting "405 Method Not Allowed". I would very much appreciate any suggestions. Cheers, David #!perl -w use LWP::UserA

mapping files

2003-10-08 Thread David Byrne
Hello, I'm trying to map two files INPUT1 to INPUT2. I believe that I've made a syntax error somewhere because I'm not retrieving any ouput; yet I know that there are IDs in INPUT2 (via $id2) that exist in INPUT1 (via $id_1b). Also, is there a general, more efficient, way to map files that conta

combinations

2003-08-04 Thread David Byrne
I am fairly new to Perl and haven't approached a scipt this complex or computation this intensive. So I would certainly appreciate any advice. I have successfully created a hash of arrays equivalent to a 122 x 6152 matrix that I want to run in 'pairwise combinations' and execute the 'sum of the