Re: advangtes of Perl on various languages

2011-01-04 Thread Octavian Rasnita
From: "Uri Guttman" >> "OR" == Octavian Rasnita writes: OR> Disadvantages: OR> - Python is prefered by software companies, because it enforce a OR> single style of programming, not the "there is more than one way to do OR> it" style. preferred? plenty of companies prefer perl. Not i

I can't understand this function that what are parameters ,can you help me?

2011-01-04 Thread jyang
Hi all : I watch a function that is package "Test::More " ,which is that segment such as : sub ok ($;$) { } and sub is ($$;$) { } please tell me what means "($;$)" , or give me some reference manual let me know it; thank you! 2011-01-05 Best Regards! -Yang

need to get parent script name inside child script

2011-01-04 Thread Sunita Rani Pradhan
Hi All I work as a automation engineer in organization and I am responsible for automation test cases in Perl . My parent automated test Perl script generally has 3 sets . - 1st set has pre-configurations section of test script . It is a separate script (called preru

Re: 1st line of perl script

2011-01-04 Thread Shawn H Corey
On 11-01-04 02:56 PM, Chap Harrison wrote: Although I don't know if this works on Windows, I notice that nobody has mentioned... #!/usr/bin/env perl No, it doesn't. In the Windows Registry, the *.pl extension is linked to the perl program. Double-clicking on a *.pl file will run perl with

Re: 1st line of perl script

2011-01-04 Thread Chap Harrison
On Jan 4, 2011, at 12:09 AM, George Worroll wrote: > I would, however, recommend that you use the "#!/usr/bin/perl" line even on > Windows. It will make things a little easier if you have to move the script > over to a Unix like system. It won't cause any problems in windows, it will > just g

Re: 1st line of perl script

2011-01-04 Thread George Worroll
On 1/4/11 4:31 AM, John Delacour wrote: On UNIX/ Mac OS X it also gives you the option of using a variety of perl installations. For example the Apple installation of Perl is made in /usr/bin but the default installation is in /usr/local/bin and other programs might make further installations

Re: advangtes of Perl on various languages

2011-01-04 Thread Uri Guttman
> "OR" == Octavian Rasnita writes: OR> Disadvantages: OR> - Python is prefered by software companies, because it enforce a OR> single style of programming, not the "there is more than one way to do OR> it" style. preferred? plenty of companies prefer perl. OR> - Python has a much

Re: DBI interaction with postgres

2011-01-04 Thread Brandon McCaig
On Tue, Jan 4, 2011 at 8:12 AM, jankes wrote: > my $nowe = $generuj->fetchrow_array; I haven't had the pleasure of using DBI yet, but CPAN says to exercise caution when using fetchrow_array in scalar context. Perhaps you should switch to list context. Either way, check the status of $generuj->err

Re: Re: perl training material and excercises for freshers

2011-01-04 Thread Martin Jones
Hi Sunita, Whilst it's not designed to be initial learning material, I prepared a Perl booklet to be handed out at the end of a Perl course. It's more to provide a model (not 100% accurate!) of how things work, mostly explaining things in diagrams. You can download it here: http://www.igniti

DBI interaction with postgres

2011-01-04 Thread jankes
Hi list, My problem will be best explained with an example: my $generuj = $dbh->prepare("SELECT plpgsql_function(par1, par2, par3)"); $generuj->execute(); my $nowe = $generuj->fetchrow_array; generuj->finish(); print "$nowe\n"; Now the plpgsql_function(par1, par2, par3) does some inserts and oth

Re: advangtes of Perl on various languages

2011-01-04 Thread Octavian Rasnita
From: "Sunita Rani Pradhan" - What all advantages Perl has on top of other scripting languages like Python , shell , Java ? Compared with Python: Advantages: - Perl offers more free helpful modules for web programming and system administration - Perl is much more flexible than Python - Pe

Re: 1st line of perl script

2011-01-04 Thread John Delacour
At 01:09 -0500 04/01/2011, George Worroll wrote: 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

Re: New Document: "How to Start Contributing to or Using Open Source Software"

2011-01-04 Thread Alvaro Mantilla Gimenez
On Tue, 28 Dec 2010, Shlomi Fish wrote: Date: Tue, 28 Dec 2010 02:55:32 From: Shlomi Fish To: beginners@perl.org Cc: Alvaro Mantilla Gimenez Subject: Re: New Document: "How to Start Contributing to or Using Open Source Software" On Monday 27 Dec 2010 21:44:05 Alvaro Mantilla Gimenez wrote

Re: 1st line of perl script

2011-01-04 Thread Alan Haggai Alavi
Hi Sunita, >            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 . It is a shebang line which is only useful in Unix-like operating sy