Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # $options is some JSON decoded array of hash'es thing.
- my $comments;
- foreach my $device(@{$options->{'data'}}) {
- if ($device->{'systemname'} eq "XYZ") {
- $comments = $device->{'comments'};
- exit;
- }
- }
- print $comments;
- # WHY is $comments empty !?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement