I tried the following to test for spaces and try your suggestion:

print "=$filename==$localpath/archives/=\n"; system('mv', "'$filename'", "'$localpath/archives/'") or Die ("data +load","YTSMSC","High","Could not move file: $filename for succ essful exit: $@");

Running the code I got complaints from mv, but the or didn't kick in. but the files didn't move, wither. I did an ls with a cut and paste of one of the file names to proven that part is sound.

[reports@clarkkent]/home/reports/ftp/YTSMSC50/test(11): ./t.pl >/home/reports/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC.0507200200<>/home/ +reports/ftp/YTSMSC50/test/archives/< mv: cannot access '/home/reports/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC. +0507200200' >/home/reports/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC.0507200215<>/home/ +reports/ftp/YTSMSC50/test/archives/< mv: cannot access '/home/reports/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC. +0507200215' >/home/reports/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC.0507200230<>/home/ +reports/ftp/YTSMSC50/test/archives/< mv: cannot access '/home/reports/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC. +0507200230' >/home/reports/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC.0507200245<>/home/ +reports/ftp/YTSMSC50/test/archives/< mv: cannot access '/home/reports/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC. +0507200245' [reports@clarkkent]/home/reports/ftp/YTSMSC50/test(12): ls archives sav2.pl SMSC_COU +NTERS_SMSC.0507200230 errors SMSC_COUNTERS_SMSC.0507200200 SMSC_COU +NTERS_SMSC.0507200245 sav1.pl SMSC_COUNTERS_SMSC.0507200215 t.pl [reports@clarkkent]/home/reports/ftp/YTSMSC50/test(13): ls /home/repor +ts/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC.0507200230 /home/reports/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC.0507200230 [reports@clarkkent]/home/reports/ftp/YTSMSC50/test(14): ls -l /home/re +ports/ftp/YTSMSC50/test/SMSC_COUNTERS_SMSC.0507200230 -rw-r--r-- 1 reports staff 47472 Aug 12 12:08 /home/reports/ft +p/YTSMSC50/test/SMSC_COUNTERS_SMSC.0507200230 [reports@clarkkent]/home/reports/ftp/YTSMSC50/test(15):
Crazy Uncle Jimbus says, "Never moon a werewolf!"

In reply to Re^2: Do and Die by jimbus
in thread Do and Die by jimbus

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.