I may as well stick my two penn'th in.

RTFM'ing would be fine for a good in depth script, but it seems that for a quick one off script (as it appears that this was), you already understood the syntax, differences et al of the unix system i.e. a shell script could probably do the trick just as easily.

If you need to use Perl, then why not just do a system() call to do the job. This isn't very Perlish I know, but when it all goes horribly wrong and lots of people are breathing down your neck to fix it NOW, they won't give two wotsits how you've coded it, just that the problem is now fixed.

Of course this does imply that you've RTFMed the unix manual and know the difference between soft and hard links.

So yes, RTFM, just make sure it's the right one!


In reply to Re: Never forget to RTFM properly - a story by awkmonk
in thread Never forget to RTFM properly - a story by robartes

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.