Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: Cygwin and Perl configuration

by 99names (Initiate)
on Feb 02, 2005 at 13:58 UTC ( #427250=note: print w/replies, xml ) Need Help??


in reply to Re^3: Cygwin and Perl configuration
in thread Cygwin and Perl configuration

I'll do that....but kindly tell me usually when are you available on this site so I may post my questions at that time hoping to recieve your reply.... As I said I am new to perl and would very much like to work on improving my skills in perl programing. I have a huge project that I want to write for personal use: It requires the following steps: 1) I have to write a Perl script and using the regular expressions, extract all text files from my hardisk that are in a particular format and have a certain arrangement of filenames. 2) I have to compare the files based on date and year and possibly place which are included in the file name itself. Once compared, I want to sort them by date, and then location (if multiple files were made on the same date). 3) I have to be able to eventually take the multiple files created on the same date to append with a header at each concatenation with just the "location" in the header to as to where was the file created. 4) I have to be able to organize these files so that I can use Perl to input them directly into an MS Access DB. This would enable me to sort them and so an and so forth. I'll design the db after I am done with Step 2. 5) I have to build some animations and autoscripting utilities so that the DB will run as an intro program for anyone who may burn the program on a disk and run the disk. 6) I want to enable atleast some form of security on the program so that ONLY ONE PERSON who has the username and the password should be able to use the program. 7) I want to figure out a way so that I can keep a user who does not know the username and the password from running the program. This is a very important project to me and I am willing to do what it takes to complete this project. Please advise.

Replies are listed 'Best First'.
Re^5: Cygwin and Perl configuration
by Corion (Pope) on Feb 02, 2005 at 14:08 UTC

    I am online here very often, but I am not the only one here, and there are others who will be at least as helpfull as I try to be. So please, simply post whatever questions you have regarding Perl and your project, but please keep those questions small in focus, otherwise the answers will be as broad as your questions.

    Your project that you want to write is quite large for a first programming project, but it is not completely infeasible to do it. You already have taken one major step and broken down the program into successive stages. Now you slowly need to start working on these stages:

    1. Install Perl, and get a very simple script working. Familiarize yourself with the code editor, how to run a Perl program, and the errors that Perl returns.
    2. Write a Perl script and using the regular expressions, extract all text files from my hardisk that are in a particular format and have a certain arrangement of filenames.
    3. Compare the files based on date and year and possibly place which are included in the file name itself. Once compared, sort them by date, and then location (if multiple files were made on the same date).
    4. Eventually take the multiple files created on the same date to append with a header at each concatenation with just the "location" in the header to as to where was the file created.
    5. Organize these files so that I can use Perl to input them directly into an MS Access DB. This would enable me to sort them and so an and so forth. I'll design the db after I am done with Step 2.
    6. Build some animations and autoscripting utilities so that the DB will run as an intro program for anyone who may burn the program on a disk and run the disk.
    7. Enable atleast some form of security on the program so that ONLY ONE PERSON who has the username and the password should be able to use the program.
    8. Figure out a way so that I can keep a user who does not know the username and the password from running the program.

    If you write the program to work for step 1 first, then you have a clear plan on what to add next. Perl has plentyfull of modules that will help you reading files, accessing a database and creating a fancy user interface, so you are not looking in the wrong direction when chosing Perl to solve your problem.

    But every journey begins with a first step, and first, you have to install Perl and get a first small program working with Perl. In addition to the one-liners that I gave you in my above reply, you can type in the following program, save it as 99names.pl, and then start it via the command line, or maybe even via a double-click on the program, once Perl is installed properly:

    #!perl -w use strict; my $username = '99names'; print "Hello $username! This is the first Perl program\n"; print "Press the Enter key to end this program."; <>;
Re^5: Cygwin and Perl configuration
by rdfield (Priest) on Feb 02, 2005 at 15:50 UTC
Re^5: Cygwin and Perl configuration
by 99names (Initiate) on Feb 02, 2005 at 14:28 UTC
    didn't recieve your post .... it's a blank post.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://427250]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2018-07-23 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (472 votes). Check out past polls.

    Notices?