I almost hesitate to ask this question, but I am curious.
I'm involved in a massive recoding project and am slightly concerned that when all is said and done I may (due to human idiocy, ie I found out at 7:30 tonight that it isnt Thursday) leave out a critical scalar somewhere in the process.
Sadly because it is a recode of only part of the system, I cannot change some of the scalar names that I don't find intuitive and have a hard time remembering them (ie. $value1 and $input_type, would be in my code $value_of_object_class and $type_of_object_in_use) admitedly my names are rather long, but they say something about themselves.

If I forget about something like $session_id or any of the around 20 other important scalars and close out without recording them into the database (along with the other scalars in use of lesser importance), I will probably have to recode some good sized chunks of my code. So, bringing me finally to the question I have, does anyone know of a program to run against two perl programs that verifies that one file is using all of the scalars of another, or is able to check on idiotic implementation? I'm thinkin no, that is what the human brain is for, but you guys have been cruisin the perl scene far far longer then I so; I toss this your way.
The best idea I've got (and am currently using) goes a little something like this

#!/bin/bash cat file.pl |grep $ |unique|sort
Admittedly that is entirely unperl like, but thats what I have got, thoughts anyone?

jcpunk
all code is tested, and doesn't work so there :p (varient on common PM sig for my own ammusment)

In reply to parser / find / implementation thingy? by jcpunk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.