pp --clean does not seem to work ... no proof ...

You're confused, --clean works

when pp is creating an executable , it putts stuff into temp, this is what you're confusing for --clean not doing its job

$ rm -rf goner-temp $ md goner-temp $ set TEMP=goner-temp $ set TMP=goner-temp $ findrule goner-temp |wc --lines 1 $ pp --clean coy.pl $ findrule goner-temp |wc --lines 109

Running the executable doesn't increase the number of files in temp, this means --clean is working

$ a.exe 1>NUL 2>NUL $ findrule goner-temp |wc --lines 109

Emptying temp, and running the executable shows no files in temp

$ rm -rf goner-temp $ md goner-temp $ findrule goner-temp |wc --lines 1 $ a.exe 1>NUL 2>NUL $ findrule goner-temp |wc --lines 2

Without --clean option the number of files doubles after running the executable

$ rm -rf goner-temp $ md goner-temp $ pp coy.pl $ findrule goner-temp |wc --lines 109 $ a.exe 1>Nul 2>NUL $ findrule goner-temp |wc --lines 220

--clean worked as designed, its working

Could it be that it works on windows and is broken on linux? Not likely -- now you know how to check


In reply to Re: pp --clean does not seem to work (it does) by Anonymous Monk
in thread pp --clean does not seem to work by hellosarathy

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.