Its both

Then if you are offering it as advice to me, I reserve the right to reject it. And explain why. Which I did.

even all the units, of which he says there are 2526;

I made it 2571. It took me exactly 6 minutes to locate the source; download the file; unzip it; locate definitions.units; load it into my editor; and run 5 regex substitutions and half-a-dozen manual fixups to isolate that list. Which I then pasted into the data section of a script:

#! perl -slw use strict; use Time::HiRes qw[ time ]; my $start = time; my %units = map{ chomp; $_ , 1 } <DATA>; print time-$start; __DATA__ ...

And it took a whole 7 milliseconds to load the hash:

C:\test>junk3 0.00783705711364746
Its much better to badmouth them without investigation of any kind
  1. I didn't bad mouth; just said that they were unnecessary.
  2. I did investigated String::ShellQuote.

    Enough to discover that as only supports BourneShell quoting, it would be useless to me or anyone who needs to support some other shell. Which would then require yet another module and trusting yet another author.

    And for long enough to know that it would take me days to convince myself that the author knew what he was doing; and much longer to convince myself he'd covered everything.

As for IPC::System::Simple. I've investigated that before. And whilst I have seen modules that purport to be 'better' substitutes for built-ins that were more bloated, and/or more pointless, but there aren't many.

Now that is bad mouthing if you wish to see it that way.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?


In reply to Re^9: Security issue and solution for terminal command accessed by public user by BrowserUk
in thread Security issue and solution for terminal command accessed by public user by keenlearner

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.