In general, Perl is case-sensitive. If you want to use warnings, you should change:
use Warnings ; # Cause we should
to:
use warnings ; # Cause we should
to make sure there is no confusion for anyone else reading it
Since you are concerned about such things, when I compile your code, I get all these warnings:
perl -c 921312.pl Name "main::hour" used only once: possible typo at 921312.pl line 26. Name "main::blocks" used only once: possible typo at 921312.pl line 23 +. Name "main::mode" used only once: possible typo at 921312.pl line 23. Name "main::wday" used only once: possible typo at 921312.pl line 26. Name "main::uid" used only once: possible typo at 921312.pl line 23. Name "main::dev" used only once: possible typo at 921312.pl line 23. Name "main::isdst" used only once: possible typo at 921312.pl line 26. Name "main::atime" used only once: possible typo at 921312.pl line 23. Name "main::gid" used only once: possible typo at 921312.pl line 23. Name "main::si921312.ple" used only once: possible typo at 921312.pl l +ine 23. Name "main::blksi921312.ple" used only once: possible typo at 921312.p +l line 23. Name "main::ctime" used only once: possible typo at 921312.pl line 23. Name "main::rdev" used only once: possible typo at 921312.pl line 23. Name "main::nlink" used only once: possible typo at 921312.pl line 23. Name "main::yday" used only once: possible typo at 921312.pl line 26. Name "main::ino" used only once: possible typo at 921312.pl line 23. Name "main::min" used only once: possible typo at 921312.pl line 26. Name "main::sec" used only once: possible typo at 921312.pl line 26.
You could simplify your code by removing all unused code.

See also use strict and warnings.


In reply to Re: Moving files to subfolders based on their last modified date by toolic
in thread Moving files to subfolders based on their last modified date by shadowfox

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.