Re: HoH efficiency

2007-07-17 Thread Jeff Pang
--- Rodrick Brown <[EMAIL PROTECTED]> wrote: > Is there a more efficient way to handle the method I > choose to unroll my HoH. > Thanks. > > #!/usr/bin/perl -w > use strict; > use warnings; > use Data::Dumper; > > my @data = ; > > my ($user,$gid,$homedir,%userMap); > foreach(@data) { > /^#/

HoH efficiency

2007-07-17 Thread Rodrick Brown
Is there a more efficient way to handle the method I choose to unroll my HoH. Thanks. #!/usr/bin/perl -w use strict; use warnings; use Data::Dumper; my @data = ; my ($user,$gid,$homedir,%userMap); foreach(@data) { /^#/ and next; /(\w+):/ and $user = $1; /\w+:*:(\d+):/ and $gid = $1; /.*:(.*