Re: My first perl program after 6 years (need help on Win32::OLE ADSI script)

2012-09-07 Thread Michiel Beijen
Hi Andrew, On Thu, Sep 6, 2012 at 5:23 AM, andrew sison andrew.sison...@gmail.com wrote: I've done some reading and learned that in order to automate that particular task using perl, I would have to use either Win32::OLE or Net::LDAP. So I decided to use to former. Actually, I would strongly

Re: My first perl program after 6 years (need help on Win32::OLE ADSI script)

2012-09-06 Thread Shlomi Fish
Hi Andrew, I'm not an OLE or Win32::OLE expert, but see below for a review of your code: On Thu, 6 Sep 2012 11:23:41 +0800 andrew sison andrew.sison...@gmail.com wrote: Hello, It has been six years since I have shifted into a new role from being a systems administrator to being an IT

My first perl program after 6 years (need help on Win32::OLE ADSI script)

2012-09-05 Thread andrew sison
Hello, It has been six years since I have shifted into a new role from being a systems administrator to being an IT auditor. It's been a while since I've written my last perl script. Now I'm back here again to get some help. Basically my job now requires me to conduct audits on the information

First perl program

2008-06-19 Thread Jason B
I'm really new to programming and this is my first perl prog. I'm looking for any advice or comments on this script. (I don't want to develop bad habits from the start) Thx. #!/usr/bin/perl #Name:circumf #Date:Jun19/08 #Author:Bornhoft, J #Purpose:to calculate the circumference of a circle

Re: First perl program

2008-06-19 Thread Rob Coops
Hi Jason, To start with you are going to get quite a few replies that will tell you to use strict and enable warnings because that is what good perl programers do. :-) #!/usr/bin/perl use strict; use warnings; #Name:circumf Strict basically forces you to scope your variables, there is a lot

Re: First perl program

2008-06-19 Thread Dr.Ruud
Jason B schreef: #!/usr/bin/perl Missing: use strict; use warnings; #Name:circumf #Date:Jun19/08 #Author:Bornhoft, J #Purpose:to calculate the circumference of a circle print Hi. I'm going to help you calculate the circumference of a circle\n; Alternative: print 'EOT'; Hi.

RE: First perl program

2008-06-19 Thread Thomas Bätzler
Hi, Jason B [EMAIL PROTECTED] wrote: I'm really new to programming and this is my first perl prog. I'm looking for any advice or comments on this script. Enable warnings and use strict;. That'll help you to write better code. #!/usr/bin/perl #!/usr/bin/perl -w use strict;

Re: First perl program

2008-06-19 Thread Dr.Ruud
Thomas Bätzler schreef: #!/usr/bin/perl -w Read perllexwarn. -- Affijn, Ruud Gewoon is een tijger. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/