in reply to Re: My Perl-foo... SORT is not strong
in thread My Perl-foo... SORT is not strong
Thank you for your quick reply. I'm horribly new to Perl and it's nice to have someone looking over my shoulder. I made the change you suggested and sadly am getting an error - probably since I didn't show you all the code....
#all the checks have been run - now sort the 2 hashes, and print out t +heir contents to the note. my $ReleventCount = scalar keys %Relevent; if ($ReleventCount >= 1) { foreach my $name (sort { $b <=> $a } keys %Relevant) { $RESULTS = $RESULTS . "Severity: " . $name . "\n" . $Relevent{ +$name} . "\n\n" } }
Error: Global symbol "%Relevant" requires explicit package name at PSFT_Automation.pl line 641. Execution of PSFT_Automation.pl aborted due to compilation errors. Again, Thanks for helping me out
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: My Perl-foo... SORT is not strong
by Anonymous Monk on Mar 19, 2015 at 15:35 UTC | |
by Greg@Work (Initiate) on Mar 19, 2015 at 16:50 UTC | |
by choroba (Cardinal) on Mar 19, 2015 at 16:53 UTC | |
by Greg@Work (Initiate) on Mar 19, 2015 at 20:35 UTC | |
by marinersk (Priest) on Mar 19, 2015 at 15:40 UTC |