ame, $p, $uid, $gid, $gecos, $dir, $s ) = split( ':' );
$hash1{$name} -> {'uid'} = $uid;
$hash1{$name} -> {'gid'} = $gid;
$hash1{$name} -> {'gecos'} = $gecos;
HoHoH
--
$VAR1 = {
'jblow' =>
ame, $p, $uid, $gid, $gecos, $dir, $s ) = split( ':' );
$hash1{$name} -> {'uid'} = $uid;
$hash1{$name} -> {'gid'} = $gid;
$hash1{$name} -> {'gecos'} = $gecos;
HoHoH
--
$VAR1 = {
'jblow' =>
ame, $p, $uid, $gid, $gecos, $dir, $s ) = split( ':' );
$hash1{$name} -> {'uid'} = $uid;
$hash1{$name} -> {'gid'} = $gid;
$hash1{$name} -> {'gecos'} = $gecos;
HoHoH
--
$VAR1 = {
'jblow' =>
Dave Gray wrote:
>
> Yup, three loops. I'll get you started:
>
> for my $name (keys %dub_hash) {
>for my $uid (keys %{$dub_hash{$name}}) {
> # do stuff, note the %{...} above to force precedence
Parentheses () are used for precedence, %{} dereferences the reference
contained in $dub_ha
> my question is how do I access and print all values? I am trying:
>
> foreach (keys %dub_hash) {
> print %{$dub_hash->{$name}->{$uid}->{%gid}->{$gecos} };
> }
>
> Do I need three loops? What am I doing wrong?
Yup, three loops. I'll get you started:
for my $name (keys %dub_hash) {
for my $u
oryann9 wrote:
> I have a HoHoH structure that looks like after running print Dumper (\%hash);
>
> 'prlhNSSA' => {
> '1499' => {
> 'gecos' => 'First Name Last Name,CIS,location,
> 'ho
On 1/9/07, oryann9 <[EMAIL PROTECTED]> wrote:
I have a HoHoH structure that looks like after running print Dumper (\%hash);
'prlhNSSA' => {
'1499' => {
'gecos
I have a HoHoH structure that looks like after running print Dumper (\%hash);
'prlhNSSA' => {
'1499' => {
'gecos' => 'First Name Last
Name,CIS,location,
Hardly Armchair wrote:
>
> Hello List,
>
> I have a data structure like so:
>
> %p_mod = {
> 'A' => {
> 'fingers' => {
> '4' => 'ABSFMQS',
> '5' => 'SMTFQNL',
>},
>
John W. Krahn wrote:
Hardly Armchair wrote:
Hello List,
Hello,
I have a data structure like so:
%p_mod = {
^
You are using the wrong punctuation. That would produce a warning if you had
warnings enabled.
Sorry. I'm actually generating this data structure dynamically and just
Hardly Armchair wrote:
> Hello List,
Hello,
> I have a data structure like so:
>
> %p_mod = {
^
You are using the wrong punctuation. That would produce a warning if you had
warnings enabled.
> 'A' => {
> 'fingers' => {
> '
Hello List,
I have a data structure like so:
%p_mod = {
'A' => {
'fingers' => {
'4' => 'ABSFMQS',
'5' => 'SMTFQNL',
},
'name'=> '8-H34'
12 matches
Mail list logo