Hello,

I like the lazy part, but I also like order and backups. For this reason I have a generic file (newscript.pl) with the following default code:
#!/usr/bin/perl -w ####################### # set Modules to Use; ####################### use strict; use warnings; use CGI qw(:standard); ####################### # Establish variables, arrays, ect. ####################### # do some stuff here ####################### # Begin main body ####################### #do more stuff here ####################### # Functions & Subroutines ####################### #do the detailed work here

This file is stored on my thumbdrive and I use Notepad++ for all my editing. I do not use VI unless I have to. I edit the files locally on my laptop/pc and SCP/SFTP the files as they are edited. This allows me to get the "pretty colors" in the editor helping me know what is a variable, operator, modules, etc. but also ensures that I have a backup copy of all my data should there be a server failure with no data recovery available (it has happened). I do try and keep a simular if not the exact directory structure on the thumbdrive to help in restoring the files if need be.

Just my $0.02....Thanks for your time.

In reply to Re: Some automation on Perlscripts? by Dranzaz
in thread Some automation on Perlscripts? by matze77

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.