473,385 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

About basic Perl

crystal2005
Hello guys....

I'm newbie in Perl Language. So, in here i would like to ask several questions about Perl itself and not about the coding.

I have been given a task to use Perl for directory comparison and synchronization. I have to implement Perl scripts that accept two directories as input, compare the files and sub-directories under these two directories, and generate a well formatted report as the output. Since I'm a beginner in Perl, I'm getting confused about what the comparison mean. Is there anyone can give me a brief explanation and examples how it will be and looks like in Perl??

Additional task, i have to use Perl subroutines for tasks like checking directory names, comparing directories and generating formatted reports. What does subroutines in Perl use for??

Last question, What does POD actually use for?

Thanks a lot guys....
Mar 20 '08 #1
4 1531
nithinpes
410 Expert 256MB
Hello guys....

I'm newbie in Perl Language. So, in here i would like to ask several questions about Perl itself and not about the coding.

I have been given a task to use Perl for directory comparison and synchronization. I have to implement Perl scripts that accept two directories as input, compare the files and sub-directories under these two directories, and generate a well formatted report as the output. Since I'm a beginner in Perl, I'm getting confused about what the comparison mean. Is there anyone can give me a brief explanation and examples how it will be and looks like in Perl??

Additional task, i have to use Perl subroutines for tasks like checking directory names, comparing directories and generating formatted reports. What does subroutines in Perl use for??

Last question, What does POD actually use for?

Thanks a lot guys....
You can read through Beginning PERL to understand the basics of PERL.

To answer your questions in brief, comparing directories means comparing the list of files and sub-directories in a directory with the other. For this, you need to go through File Handling in detail. For report generation,you need to create a file and print the contents of directory in the desired format.As an example for how to open directories and get contents, you can go through this thread.

Subroutines are nothing but user-defined functions. They enable re-usability of a block of code and makes the script compact and tidy.

For PerlPOD, refer perlpod
Mar 20 '08 #2
KevinADC
4,059 Expert 2GB
Comparing directories could mean just about anything, but generally it means compare the files and folders in the directories and see if they are the same or not.

Synchronization could also mean just about anything but I assume in this case it means to delete/transfer files/folders from one directory to the other until they are the same.

What is the nature of this project: work/school/personal interest?
Mar 20 '08 #3
Comparing directories could mean just about anything, but generally it means compare the files and folders in the directories and see if they are the same or not.

Synchronization could also mean just about anything but I assume in this case it means to delete/transfer files/folders from one directory to the other until they are the same.

What is the nature of this project: work/school/personal interest?
The nature is for school project :D

Do you think this project is too difficult for a beginner?? I'm about to learn Perl in two weeks time only.

Thanks for the answers and hints.
Mar 22 '08 #4
KevinADC
4,059 Expert 2GB
It is within the realm of possibility that you could learn to do that specific task in two weeks time.
Mar 22 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
54
by: Brandon J. Van Every | last post by:
I'm realizing I didn't frame my question well. What's ***TOTALLY COMPELLING*** about Ruby over Python? What makes you jump up in your chair and scream "Wow! Ruby has *that*? That is SO...
5
by: Andrea Griffini | last post by:
I'm new to python and I really like what I've seen so far with just one exception; the absence of a nice syntax for ranges of integers. I've read PEPs about allowing for i in 10: print i and...
1
by: James White | last post by:
I have a young nephew who appears to be developing into a natural geek/nerd/guru/whatever and as he learns I need to make sure that he stays on the side of the white hats, rather than going down...
9
by: Adam Monsen | last post by:
I kindly request a code review. If this is not an appropriate place for my request, where might be? Specific questions are in the QUESTIONS section of the code. ...
21
by: Roy Smith | last post by:
I'm working on a product which for a long time has had a Perl binding for our remote access API. A while ago, I wrote a Python binding on my own, chatted it up a bit internally, and recently had a...
23
by: TefJlives | last post by:
Hi all, I'm learning a bit about C, and I have a few questions. I'm not trying to insult C or anything with these questions, they're just honestly things I don't get. It seems like pointers...
6
by: ashokbio | last post by:
I want to create an associative array, similar to PERL language, using Visual Basic 6. Example: Using PERL %A = ("A"=>"Apple","B"=>"Banana"); i.e., A is associated to the word Apple and B...
3
by: autodidact | last post by:
Hey Guys, would anyone care to explain whats going on; I have a few codes and i don't know why one works and the other doesn't. I'm playing around with concatenation operators "," and "." These...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.