I was wondering what Perl's equivalent to Ruby's pry is?
Lets say I have a block of ruby code
CSV.foreach('teamss.csv', headers: true) do |row|
binding.pry
team_array << row.to_hash
end
I can insert that binding.pry to then go to the commandlind and go to pry. From here I can type out team_array and get an output of whats currently in the hash at that iteration through the loop. I then can press next and see the next iteration through the loop. This way I can follow what's going on in the code line by line right in the terminal.
If I wanted to do something like this in Perl is there something available? That lets me see what exactly is happening in a loop at each iteration or something that at least lets me see what the finished loop is actually spitting out. That way I can see where in a large code base something might be breaking down.
If I wanted to put such a thing in this block of perl code. I was asking for an example of what it would look like. Within the block of code below or one of your own choosing. Or a simple yeah you can use this, or no there is no such thing.
foreach my $secert (@secert) {
my @example = $self->getMissingSecerts({secert=>$secert});
next if !@example;
$self->send_page({page=>"checksecerts/secert", param=>{secert=>$secert, example=>\@example}});
}