Hello,

Well, I do care, since this is a question that arises a lot at work, that is: module load times. From previous discussions i gathered that modules take almost zero time to load, especially compared to system calls (that was the origin of the argument, it led to the use of Archive::Tar and others ) .

if you use a nontrivial selection of modules the likely that POSIX gets loaded anyway is pretty high

That's a good point, but the fact is that I mainly do system administration and installing more module "just for me" is forbidden. So i only use standard distribution modules, on my current project at least. (granted, these could also, maybe, load posix ! )

probably reduce your run times (I admit I havent benchmarked),

System load is the most important point for me, as in everything system.
I believe POSIX has quite a lot of things in it, and i'm ready to had a few more lines in trade of the mere possibility that i gain something on that aspect.
Maybe i could use POSIX qw(strftime) , but i do not know how this stands in load time difference compared to the whole use posix . Do you know ?

Now if i really needed POSIX for something, i would use it. But only to format a date string ? Is it not using posix only for this that would make the code as a whole bloated ? .

Anyway, I note the points you make on good practice since it's a very important subject where i certainly need more advice

Cheers,

ZlR.


In reply to Re^6: Directory creation with current Date by ZlR
in thread Directory creation with current Date by samv74

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.