[Techtalk] Improving/Reviewing a Perl script

Terry tech at futurecourse.com
Sat Sep 6 22:14:59 UTC 2014


Hi folks,

I just wrote my first big Perl script (more than a few lines) and 
finally have it working.  Another step on my journey in learning Perl. 
I ran it through perlcritic.  What an eye opening experience!  lol  It 
definitely helped me learn even more.

I'm now reviewing my code with an eye towards improving it further if I 
can. I've read a bunch of info on refactoring and made some 
improvements. My guess is there are more to be made.

I used Devel::Cover and got this message when I ran
perl -MDevel::Cover myscripts/testing.pl:

unexpected OP_RKEYS at /usr/share/perl/5.14/B/Deparse.pm line 1113

I have no clue what this means.  I googled it and came up with nothing. 
  I also looked at line 1113 of Deparse.pm but I still don't have a 
clue.  Is this something wrong with my code or Deparse.pm?  The error 
message appears at the very end of the script, right after exit and 
right before the subs start.

Are there any other topics/tools I can research to help me improve my code?

-- 
Terry


More information about the Techtalk mailing list