You say you know why, but don't elaborate. So, I suppose my first question is - why do you think it doesn't display in the webpage?

Without that information, my first guess is that diff isn't outputting HTML, so some of it may get lost by the webclient - but the data is still there. So I'd suggest something like:

print "<pre>", `$DIFF ...`, "</pre>";
The diff output is pre-formatted anyway. If you want to spice this up, you'll have to parse the output and deal with that yourself - but that's stage 4 or 5 of this process, I bet ;-)

Minor nit: I think you mean if(-e $setuidtoday && -e $setuidyest). The -e operator doesn't go across the && the way you seem to think it does. Since $setuidyest is always true, the way you have it, that's a no-op. You probably want to test its existance.


In reply to Re: SUID check by Tanktalus
in thread SUID check by n00dles

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.