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