prepare a perl tuts


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers prepare a perl tuts
# 1  
Old 10-13-2009
prepare a perl tuts

Hi

I am working on perl for last 3 yrs and as part of knowledge sharing i have been told to conduct sessions with other teams.Only 1 session with basic details. My problem is i am not sure what all should i cover in this tut ? because i learned perl on my own. so i am not sure where to start from( in other words what should be the scope of this session ) . all people who will be attending the sessions are from Java,c++ world. So just wanted to know what all should i cover. Just give me points i will do the rest of the stuff.
# 2  
Old 10-13-2009
My approach would be: take a simple problem that's easy with Perl, eg. parsing a file and writing the statistics to a database. Then proceed designing the program like you would in any other language. Where ever applicable, demonstrate TMTOWTDI. Demonstrate CPAN by downloading and installing DBD::SQLite as the database, and the power of perldoc to read it's documentation.
# 3  
Old 10-13-2009
  • Subroutines
  • Control structures
  • Regular expressions
  • Process management
  • Modules, Objects.

If possible References also..
# 4  
Old 10-13-2009
my suggestion would be,

Code:
Introductuction
Perl Features
Structure of Perl Program
Variables & Datastructures
Operators
Statement block & Conditional blocks.
Subroutines
References
Filehandling
Regular Expression
OOPS

Since they are already programmers, they could easily catch up with you, if it is in this sequence.
# 5  
Old 10-15-2009
In my opinion, one aspect I observed that is important is that many new entrants to Perl would likely find it sort of confusing at first sight, especially for those who are used to have everything checked at compile time such as Java and C++, with a much more structured syntax compared with more dynamic languages such as Perl.

It's sort of easy to find a book or online resources to learn a programming language, so I think your emphasis in a knowledge sharing session is best placed on something that is not as directly acquired from those resources. Experience is the key. Do show them what Perl can do, and why that kind of flexibility is good.

Another thing I think you may consider is that you can be more of a motivator than a teacher, and try to help them learn on their own. There are a lot of details in the perldoc itself and if one can understand how to read them then it will be the most important resource they should go to when they have questions. If you know the stuff, then some guidance will be helpful, say the Perl OOP is not easily accepted by most Java/C++ programmers and they likely need some support there. Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How can i prepare grant staement with 2 files ?

---file1 ( tables A B C D E F ... ... Z ---file2 Joe Bob Mary Sally Fred Elmer David (1 Reply)
Discussion started by: rocking77
1 Replies

2. Shell Programming and Scripting

Prepare file run report

I have a requirement to prepare a report. We validate some incoming data fields and create validation_error reports which will contain records which do not pass validation. Once files are processed they will all be dropped under one folder. EMPLOYEE_20140915.txt... (8 Replies)
Discussion started by: member2014
8 Replies

3. Red Hat

Modprobe prepare new IP address

Hello, I m working on virtualization and saved the templates in virtual server. On creating the new Virtual machine or linux system, is there a way where during booting, it should prompt for new IP address, gateway, DNS and hostname? Or is there any configuration in linux where we can modify... (5 Replies)
Discussion started by: alnhk
5 Replies

4. UNIX for Dummies Questions & Answers

prepare a tar package

I have installed apache2 on Solaris machine with the binary. So i dont want to install the same binary across all the systems but only want to copy the lib files and the files which have been updated in this installation process. So in order to get those lib files and then prepare a tar package... (5 Replies)
Discussion started by: prash358
5 Replies

5. Shell Programming and Scripting

Prepare command before executing

Hi, Couldnt find the right string" to search for a similar question..so dont know if this has been answered yet...problem is that I want to prepare a command with the requisite parameters passed as a string before executing it...eg: the ls command .. I can pass "-l", "-t" as parameters and... (12 Replies)
Discussion started by: harman_6
12 Replies

6. Shell Programming and Scripting

Grep, then format then prepare a string

Hi I have a file which is having line like below Personal Unit=AU003 (Industrial Products Division),Plant=B00089,Departmant=D110 When ever i fine line starting sith Personal Unit and contains Plant Department I need to pick this line and format it like Personal Unit=AU003 ... (7 Replies)
Discussion started by: krishna.fuji
7 Replies

7. Shell Programming and Scripting

How can i prepare a file by comparing two other files?

File 1 data: TestA TestB TestC File 2 data: TestA TestD TestE My Output File (pick all from both and create a file without duplicate data) ---------------------------------------------------------------------- TestA TestB TestC (3 Replies)
Discussion started by: manmohanpv
3 Replies

8. Shell Programming and Scripting

prepare log for access

I need help with one of my log files I got following format: This is only a smal part of the file ! ......... -------------------------------------- 2003-08-05 12:23:13.939781 logNo : 1380008 Server started - Activate; 10.48.4.51 -------------------------------------- 2003-08-05 ... (4 Replies)
Discussion started by: joerg
4 Replies
Login or Register to Ask a Question