That doesn't compile
String found where operator expected at crapd line 4, near "or warn (" +" (Might be a runaway multi-line "" string starting on line 3) (Missing semicolon on previous line?) Bareword found where operator expected at crapd line 4, near "or warn +("Can't" (Do you need to predeclare or?) Backslash found where operator expected at crapd line 4, near "$fname\ +" (Missing operator before \?) String found where operator expected at crapd line 5, near "} elsif ( +-e "" (Might be a runaway multi-line "" string starting on line 4) (Missing semicolon on previous line?) Scalar found where operator expected at crapd line 5, near "} elsif ( +-e "$arcdir" (Missing operator before $arcdir?) Scalar found where operator expected at crapd line 6, near "copy ("$ar +cdir" (Might be a runaway multi-line "" string starting on line 5) (Do you need to predeclare copy?) Scalar found where operator expected at crapd line 6, near "", "$procd +ir" (Missing operator before $procdir?) String found where operator expected at crapd line 7, near "or warn (" +" (Might be a runaway multi-line "" string starting on line 6) (Missing semicolon on previous line?) Bareword found where operator expected at crapd line 7, near "or warn +("Can't" (Do you need to predeclare or?) Backslash found where operator expected at crapd line 7, near "$fname\ +" (Missing operator before \?) String found where operator expected at crapd line 9, near "print ("" (Might be a runaway multi-line "" string starting on line 7) (Missing semicolon on previous line?) Bareword found where operator expected at crapd line 9, near "print (" +NOT" (Do you need to predeclare print?) Bareword found where operator expected at crapd line 9, near "$fname i +n" (Missing operator before in?) Backslash found where operator expected at crapd line 9, near "in \" (Do you need to predeclare in?) Scalar found where operator expected at crapd line 9, near "/$month/$m +onth" (Missing operator before $month?) String found where operator expected at crapd line 9, at end of line (Missing semicolon on previous line?) syntax error at crapd line 1, near "perl -c" Can't find string terminator '"' anywhere before EOF at crapd line 9.
I suggest you fix your syntaxt errors first (you're missing a quote on the 2nd line).

In reply to Re: How to copy files ? by Anonymous Monk
in thread How to copy files ? by bh_perl

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.