Can someone tell me whether i can run a perl program in interactive mode or not?

I need my program to stop at each and every function call. Do i need to add anything to enable this kind of steup? (script had some command line args)

When i tried running: perl -d <script name> it failed with Cannot do `initialize' in Term::ReadLine::Gnu at /home/gnu/lib/perl5/5.6.1/perl5db.pl line 1767 Cannot do `initialize' in Term::ReadLine::Gnu at /home/gnu/lib/perl5/5.6.1/perl5db.pl line 1767 END failed--call queue aborted.