Re: perl training material and excercises for freshers

2011-01-03 Thread Jeff Pang
           I am planning to give Perl training to my juniors in my team. They are new to Perl. Could anyone please send me any Perl training materials with exercises, or links, which I can refer to? Sure. There are some really good PPTs about perl training made by a teacher Paul which was

RE: perl training material and excercises for freshers

2011-01-03 Thread Sunita Rani Pradhan
Thank you Jeff .. This site is blocked in my company , m not able to access files :( Regards Sunita -Original Message- From: Jeff Pang [mailto:pa...@arcor.de] Sent: Monday, January 03, 2011 1:33 PM To: Sunita Rani Pradhan Cc: beginners@perl.org Subject: Re: perl training material and

Re: perl training material and excercises for freshers

2011-01-03 Thread marcos rebelo
I used this slides to give a Perl training 3 times. http://www.slideshare.net/oleber/perl-introduction The course is done in a week, supposing that your juniors know how to program any other language. Best luck Marcos Rebelo -- Marcos Rebelo http://www.oleber.com/ Milan Perl Mongers leader

Re: perl training material and excercises for freshers

2011-01-03 Thread Shlomi Fish
Hi Sunita, On Monday 03 Jan 2011 09:56:49 Sunita Rani Pradhan wrote: Hi All I am planning to give Perl training to my juniors in my team. They are new to Perl. Could anyone please send me any Perl training materials with exercises, or links, which I can refer to? In

Re: perl training material and excercises for freshers

2011-01-03 Thread Parag Kalra
For beginners and exercises I would always recommend Learning Perl ( http://oreilly.com/catalog/9780596001322 ) The good thing about the book for trainers is that it gives you an approximation each topic would take to teach and the time required to complete the exercises. You can also purchase

RE: perl training material and excercises for freshers

2011-01-03 Thread Sunita Rani Pradhan
Hi Marco I am not able to access this site , seems to be down . Regards Sunita -Original Message- From: marcos rebelo [mailto:ole...@gmail.com] Sent: Monday, January 03, 2011 2:01 PM To: Sunita Rani Pradhan Cc: beginners@perl.org Subject: Re: perl training material and

Re: perl training material and excercises for freshers

2011-01-03 Thread marcos rebelo
We are speaking of slideshare.net . It's hard to believe that is down. On Mon, Jan 3, 2011 at 12:23 PM, Sunita Rani Pradhan sunita.prad...@altair.com wrote: Hi Marco        I am not able to access this site , seems to be down . Regards Sunita -Original Message- From: marcos

RE: perl training material and excercises for freshers

2011-01-03 Thread Sunita Rani Pradhan
I am sorry and thank you very much for help Marco . I had some issues in my system. Regards Sunita -Original Message- From: marcos rebelo [mailto:ole...@gmail.com] Sent: Monday, January 03, 2011 5:08 PM To: Sunita Rani Pradhan Cc: beginners@perl.org Subject: Re: perl training material

Re: perl training material and excercises for freshers

2011-01-03 Thread Peter Scott
On Mon, 03 Jan 2011 13:26:49 +0530, Sunita Rani Pradhan wrote: I am planning to give Perl training to my juniors in my team. They are new to Perl. Could anyone please send me any Perl training materials with exercises, or links, which I can refer to? Please send me good

default arguments in subroutine

2011-01-03 Thread Sunita Rani Pradhan
Hi All How can I define default arguments in Perl subroutine? Can anybody explain with examples? Thanks Sunita

Re: default arguments in subroutine

2011-01-03 Thread Brandon McCaig
On Mon, Jan 3, 2011 at 8:24 AM, Sunita Rani Pradhan sunita.prad...@altair.com wrote:            How can I define default arguments in Perl subroutine? Can anybody explain with examples? I would probably do something like: #!/usr/bin/env perl use strict; use warnings; sub foo { my $bar =

Re: default arguments in subroutine

2011-01-03 Thread Brian Fraser
How can I define default arguments in Perl subroutine? Can anybody explain with examples? Sure. But as per usual, there is more than one way to do it. This requires a Perl 5.10 or newer, for say[0] and the defined-or[1] operator; say can be replaced with a print and a trailing

Re: default arguments in subroutine

2011-01-03 Thread Shlomi Fish
Hi Sunita, On Monday 03 Jan 2011 15:24:54 Sunita Rani Pradhan wrote: Hi All How can I define default arguments in Perl subroutine? Can anybody explain with examples? One option is to extract each arguments one by one and assign default values to them using ||: sub

Re: default arguments in subroutine

2011-01-03 Thread Michiel Beijen
Hi Sunita, On Mon, Jan 3, 2011 at 2:24 PM, Sunita Rani Pradhan sunita.prad...@altair.com wrote: How can I define default arguments in Perl subroutine? Can anybody explain with examples? Sure, the best thing to do is to use named arguments for a subroutine, by means of using a hash.

Re: default arguments in subroutine

2011-01-03 Thread Shlomi Fish
On Monday 03 Jan 2011 17:51:08 Michiel Beijen wrote: Hi Sunita, On Mon, Jan 3, 2011 at 2:24 PM, Sunita Rani Pradhan sunita.prad...@altair.com wrote: How can I define default arguments in Perl subroutine? Can anybody explain with examples? Sure, the best thing to do is

Re: default arguments in subroutine

2011-01-03 Thread Michiel Beijen
On Mon, Jan 3, 2011 at 5:04 PM, Shlomi Fish shlo...@iglu.org.il wrote: Your subroutine implementation and the example do not match. Either add {...} around the subroutine parameters to make it an anonymous hash reference, or (less preferably IMHO) convert $param_ref to my %params = @_ (and omit

RE: default arguments in subroutine

2011-01-03 Thread Sunita Rani Pradhan
Thank you all for you help . I have got my answer . Regards Sunita -Original Message- From: Michiel Beijen [mailto:michiel.bei...@gmail.com] Sent: Monday, January 03, 2011 9:56 PM To: Shlomi Fish Cc: beginners@perl.org; Sunita Rani Pradhan Subject: Re: default arguments in subroutine

Re: [OT] The Happy, Happy, Feel Good Thread (WAS: New Document: How to Start Contributing to or Using Open Source Software)

2011-01-03 Thread Raymond Wan
On Mon, Jan 3, 2011 at 04:18, Brandon McCaig bamcc...@gmail.com wrote: On Sun, Jan 2, 2011 at 9:39 AM, Raymond Wan r@aist.go.jp wrote: Core Perl experts that think it's just them and beginners on the list risk scaring people in the middle groups away, further making the problem worse [for

1st line of perl script

2011-01-03 Thread Sunita Rani Pradhan
Hi All Perl script works without the first line ( perl Interpreter : #! /usr/bin/perl) . What is the real use of this line ? This line does not through any error on Windows where , this path does not exist . Why is it so ? Could anybody explain it clearly? Thanks

Re: 1st line of perl script

2011-01-03 Thread Parag Kalra
Thats called Sha-Bang header also called Magical Bytes. They come into picture when you do not specify the interpreter while executing the script. EG: ./my_script.pl (here no interpreter is specified i.e perl is missing) In this case, script uses the interpreter specified at sha-bang header.

Re: 1st line of perl script

2011-01-03 Thread George Worroll
On 1/4/11 12:33 AM, Sunita Rani Pradhan wrote: Perl script works without the first line ( perl Interpreter : #! /usr/bin/perl) . What is the real use of this line ? This line does not through any error on Windows where , this path does not exist . On Unix, it allows you to run

Re: 1st line of perl script

2011-01-03 Thread Octavian Rasnita
You can put any path in that line, not only /usr/bin/perl. If you are using Perl under Windows, you may want to put paths like: #!C:/perl/bin/perl #!C:/perl/bin/perl.exe If a Perl program uses this line under Unix/Linux and if the program is executable, it can be ran by just using:

RE: 1st line of perl script

2011-01-03 Thread Sunita Rani Pradhan
I think this is very good info .. I have tried on Windows and Unix as well . - I found like , this line does not matter on windows . Windows need .pl extension but Unix/Linux does not . - Unix required this interpreter line when we are executing as , e.g ./test.pl or ./test. If the line is

advangtes of Perl on various languages

2011-01-03 Thread Sunita Rani Pradhan
Hi All I would like to know answers of following questions : - What all advantages Perl has on top of other scripting languages like Python , shell , Java ? - What is the career growth, road map in Perl programming ? I am not sure , if this questions are right for

Re: advangtes of Perl on various languages

2011-01-03 Thread Parag Kalra
- What all advantages Perl has on top of other scripting languages like Python , shell , Java ? Its a never ending argument but the best advantage of Perl (according to me) is light weight, very fast, Open Source, CPAN modules, excellent documentation, small and easy way to do complex thing and

Re: 1st line of perl script

2011-01-03 Thread Peter Scott
On Tue, 04 Jan 2011 01:09:56 -0500, George Worroll wrote: On Windows, that line is just a comment. Neither the operating system nor the interpreter does anything with it. Not quite. Any options on the line (e.g., -T) will be activated. -- Peter Scott http://www.perlmedic.com/

Re: advangtes of Perl on various languages

2011-01-03 Thread Peter Scott
On Tue, 04 Jan 2011 12:42:28 +0530, Sunita Rani Pradhan wrote: I would like to know answers of following questions : - What all advantages Perl has on top of other scripting languages like Python , shell , Java ? - What is the career growth, road map in Perl programming ?