perl5 - How to set custom headers for HTTP::Tiny in Perl?

I'm having some trouble understanding the proper way to set headers for HTTP::Tiny in Perl 5. So far I have seen examples of hashes, hash references, and a myriad of other seemingly incomposable ways.What is the proper way of setting the headers for a request? What's an easy way to view the request before it is sent?Here is some example code:#!/usr/bin/env perl use 5.12.1; ...Read more

perl5 - continue command ignores breakpoints

I'm getting errors using CPAN and, as output is rather unhelpful, resorted to debugging this.$ perl -d /usr/bin/cpan CPANLoading DB routines from perl5db.pl version 1.33<...>main::(/usr/bin/cpan:2): eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'main::(/usr/bin/cpan:3): if $running_under_some_shell; DB<1> b /usr/lib/perl5/5.14/HTTP/Tiny.pm:125 DB<2> L/usr/bin/cpan: 2: eval 'exec /usr/bin/perl -S $0 ${1+"$@"}' break if (/usr/lib/perl5/5.14/HTTP/Tiny.pm:125) DB<2> cAfter c, the program runs...Read more