Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
Peer Review for Folder Delete Script
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Uri Guttman, post: 4862072"] CC> Thanks for your input uri. CC> Some of my code probably ended up pretty sloppy since my 60 minute project CC> turned into about 3 hours worth of frustrations. (Fortunately, I was CC> running it on a test system, so no real data loss occurred.) CC> For example, I should not have needed someone to point out I CC> should have used: my $mtime = (stat($entry))[9] instead of the CC> long drawn out method I and there are -X entries that will get you info like that so you can avoid the stat slice too. CC> I also simplified a few other items and cleaned up the superfluous CC> syntax. (But I kept the end of line comments because that's how I CC> like to do it... and at least I add comments.) good for you that you add comments. how you like to do it is not as important as how people like to read. perl style is generally not to comment on the same line and you don't see it much in perl code. so it is better for you to adhere to the more common style of comments on their own lines. and as i said you get more room and multiline comments work. also you can line wrap those comments (most decent editors can do this) with a command to keep them readable. uri [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
Peer Review for Folder Delete Script
Top