$ perl --version
This is perl, v5.10.0 built for i486-linux-gnu-thread-multi
$ perl -MTerm::ReadLine -le 'print $Term::ReadLine::VERSION'
1.03
$ perl -MLWP::UserAgent -le 'print $LWP::UserAgent::VERSION;'
5.829
####
#!/usr/bin/perl -tw
use strict;
use warnings;
require 5.008008;
use Config::IniFiles;
use LWP::UserAgent;
my $ua = LWP::UserAgent->new;
$ua->env_proxy;
my $r = $ua->get('http://www.perlmonks.org');
# assuming the above works, once you've stepped on it running any debugger
# command including h for help results in screens full of Insecure dependency
# warnings and my code after that point does not work the same as when run
# without the debugger.
die "Failed to retrieve url, " . $r->status_line . "\n"
if (!$r->is_success);
print "hello\n";
####
perl -d -t /tmp/d.pl
Loading DB routines from perl5db.pl version 1.3
Editor support available.
Enter h or `h h' for help, or `man perldebug' for more help.
main::(/tmp/d.pl:5): require 5.008008;
DB<1> n
main::(/tmp/d.pl:9): my $ua = LWP::UserAgent->new;
DB<1> n
main::(/tmp/d.pl:10): $ua->env_proxy;
DB<1>
main::(/tmp/d.pl:11): my $r = $ua->get('http://www.perlmonks.org');
DB<1>
main::(/tmp/d.pl:16): die "Failed to retrieve url, " . $r->status_line . "\n"
main::(/tmp/d.pl:17): if (!$r->is_success);
Insecure dependency in sprintf while running with -t switch at /usr/share/perl/5.10/overload.pm line 99.
Insecure dependency in sprintf while running with -t switch at /usr/share/perl/5.10/overload.pm line 99.
Insecure dependency in open while running with -t switch at /usr/local/lib/perl/5.10.0/Term/ReadLine/Gnu.pm line 620.
at /usr/local/lib/perl/5.10.0/Term/ReadLine/Gnu.pm line 620
Term::ReadLine::Gnu::Var::FETCH('Term::ReadLine::Gnu::Var=SCALAR(0x8e78258)') called at /usr/local/lib/perl/5.10.0/Term/ReadLine/Gnu.pm line 298
Term::ReadLine::Gnu::readline('Term::ReadLine=HASH(0x8df56b8)', ' DB<1> ') called at /usr/share/perl/5.10/perl5db.pl line 6414
DB::readline(' DB<1> ') called at /usr/share/perl/5.10/perl5db.pl line 2227
DB::DB called at /tmp/d.pl line 16
Insecure dependency in sprintf while running with -t switch at /usr/share/perl/5.10/overload.pm line 99.
Insecure dependency in sprintf while running with -t switch at /usr/share/perl/5.10/overload.pm line 99.
Insecure dependency in sprintf while running with -t switch at /usr/share/perl/5.10/overload.pm line 99.
Insecure dependency in open while running with -t switch at /usr/local/lib/perl/5.10.0/Term/ReadLine/Gnu.pm line 656.
at /usr/local/lib/perl/5.10.0/Term/ReadLine/Gnu.pm line 656
Term::ReadLine::Gnu::Var::STORE('Term::ReadLine::Gnu::Var=SCALAR(0x8e78258)', 'Term::ReadLine::Gnu::Var=GLOB(0x8ef1638)') called at /usr/local/lib/perl/5.10.0/Term/ReadLine/Gnu.pm line 298
Term::ReadLine::Gnu::readline('Term::ReadLine=HASH(0x8df56b8)', ' DB<1> ') called at /usr/share/perl/5.10/perl5db.pl line 6414
DB::readline(' DB<1> ') called at /usr/share/perl/5.10/perl5db.pl line 2227
DB::DB called at /tmp/d.pl line 16