60 PerlMonks - Newest Nodes New nodes appearing on PerlMonks http://perlmonks.org/index.pl?node_id=30175 http://blogs.law.harvard.edu/tech/rss PerlMonks Newest Nodes XML Generator 961 PerlMonks 2016-02-13 09:29:19 rss,clean Fri Feb 12 22:29:19 2016 30 20160212222919 Fri Feb 12 22:29:19 2016 http://perlmonks.org/ Anonymous Monk Re^7: multi level hash terror - if statement to access specific elements beech http://perlmonks.org/index.pl?node_id=1155155 Sorry that's a typo...but using the correct equality operator still results in all surnames getting printed Are all the surnames "Gay"? Is this what you have? my %names = ( ... note Sat, 13 Feb 2016 07:56:00 +0000 http://perlmonks.org/index.pl?node_id=1155155 1155155 1136678 2016-02-13 02:56:00 beech Re^2: multi level hash terror - if statement to access specific elements hungrysumo79 http://perlmonks.org/index.pl?node_id=1155154 Thank you this helped me so much - I will study this to get it in my head.. thanks so much!... note Sat, 13 Feb 2016 06:53:12 +0000 http://perlmonks.org/index.pl?node_id=1155154 1155154 1155139 2016-02-13 01:53:12 hungrysumo79 Re^6: multi level hash terror - if statement to access specific elements hungrysumo79 http://perlmonks.org/index.pl?node_id=1155153 Sorry that's a typo...but using the correct equality operator still results in all surnames getting printed... note Sat, 13 Feb 2016 04:45:48 +0000 http://perlmonks.org/index.pl?node_id=1155153 1155153 1155139 2016-02-12 23:45:48 hungrysumo79 Re: multi level hash terror - if statement to access specific elements Athanasius http://perlmonks.org/index.pl?node_id=1155152 Hello <a href="?node=hungrysumo79">hungrysumo79</a>, and welcome to the Monastery! In addition to the problem identified by <a href="?node=beech">beech</a> &mdash; using an assignment (=) where a comparison (== or, in this case,... note Sat, 13 Feb 2016 04:45:06 +0000 http://perlmonks.org/index.pl?node_id=1155152 1155152 968231 2016-02-12 23:45:06 Athanasius Re^5: multi level hash terror - if statement to access specific elements beech http://perlmonks.org/index.pl?node_id=1155151 ...Removing the print doesn't help ... = 'Gay' Why are you still using the assignment operator instead of the string equality comparison operator eq?... note Sat, 13 Feb 2016 04:08:17 +0000 http://perlmonks.org/index.pl?node_id=1155151 1155151 1136678 2016-02-12 23:08:17 beech Re^4: multi level hash terror - if statement to access specific elements hungrysumo79 http://perlmonks.org/index.pl?node_id=1155150 Removing the print doesn't help - it is printing every last name in the database table. I just want it to print the surname of 'Gay' when it finds the first name 'Gay'. Only surnames should be pr... note Sat, 13 Feb 2016 04:01:13 +0000 http://perlmonks.org/index.pl?node_id=1155150 1155150 1155139 2016-02-12 23:01:13 hungrysumo79 Re^3: Proc::ProcessTable truncating cmndline and fname jcb http://perlmonks.org/index.pl?node_id=1155149 In both cases, more information is available, but Proc::ProcessTable does not know how to retrieve it. You will need to find where ps(1) gets its information and then submit patche... note Sat, 13 Feb 2016 03:49:55 +0000 http://perlmonks.org/index.pl?node_id=1155149 1155149 1149436 2016-02-12 22:49:55 jcb Re^3: multi level hash terror - if statement to access specific elements beech http://perlmonks.org/index.pl?node_id=1155148 Thanks but that still prints out the entire hash instead of just the last name of "Gay" So you want to fix this? for my $key ( keys %names ) { for my $key2 ( keys $names{$key... note Sat, 13 Feb 2016 03:41:49 +0000 http://perlmonks.org/index.pl?node_id=1155148 1155148 1136678 2016-02-12 22:41:49 beech