RE: [PBML] Help with Data Structures

2004-06-18 Thread Charles K. Clarkson
From: William Martell wrote: : Hello All, : : I was wondering if someone could tell me how to manipulate : this data structure. I have attached the datafile. My code : and code results are printed below. : : If you take a look at the results, you will see that there

Help with Data Structures

2004-06-17 Thread William Martell
Hello All, I was wondering if someone could tell me how to manipulate this data structure. I have attached the datafile. My code and code results are printed below. If you take a look at the results, you will see that there is a hash created for each interaction in the loop and the results a

Help with Data Structures

2004-06-14 Thread William Martell
Hello All, I hope you all are doing well. I am trying to get this code to work correctly and I have used another Perl Guru's code [Thanks Charles Clarkson] to get this far, but I am still unsure about a few things... I am trying to read a file (attached). and I am trying to make a csv file of

Re: Help with Data Structures

2004-06-04 Thread John W. Krahn
William Martell wrote: > > Hello Group, Hello, > I am trying to get this code to run. I got it from the book > Data Munging with Perl. I cut and pasted the code, then changed > the input from stdin to FILE. I supplied a text file for the > passwords (I am on a Windows 2k box). But I can't get it

RE: Help with Data Structures

2004-06-04 Thread Charles K. Clarkson
From: William Martell wrote: : Here you go. Try this then: my $users = read_passwd(); my @names; foreach (keys %{$users}) { next unless $users->{$_}{fullname}; my ($forename, $surname) = split(/\s+/, $users->{$_}{fullname}, 2); push @names, "$surname, $

RE: Help with Data Structures

2004-06-04 Thread William Martell
On Fri, 4 Jun 2004 09:52:15 -0500, Charles K. Clarkson wrote: > Show us the example from the book. Or give us a link to it on line. > (When you cut and paste code please prune excess spacing.) A sample > file would be nice to. Here you go. Example: listing users To start with, let’s produce a list

RE: Help with Data Structures

2004-06-04 Thread Charles K. Clarkson
From: William Martell wrote: : Hello Group, : : : : I am trying to get this code to run. I got it from the book : Data Munging with Perl. I cut and pasted the code, then : changed the input from stdin to FILE. I supplied a text file : for the passwords (I am on a Wind

Help with Data Structures

2004-06-04 Thread William Martell
Hello Group,   I am trying to get this code to run. I got it from the book Data Munging with Perl. I cut and pasted the code, then changed the input from stdin to FILE. I supplied a text file for the passwords (I am on a Windows 2k box). But I can't get it correct. I think the line @[EMAIL PR