Is there a perl module capable of tracking changes within active directory?

2003-07-21 Thread Chhabria, Kavita - Apogent
Title: Message Hello everyone: Does anyone know of a perl module that can track changes within active directory, similar to what the PSearch control can do that the ldap servers support? If anyone knows of such a perl module, pls provide me with an example as well. I am newbie to Perl.

Hash building

2003-07-21 Thread Ed Welsh
I have a situation where I need to build a hash with output from a subroutine. Here it is in plain english. I can include the actual script if need be. I have an array built from a separate sub that contains IP addresses. I have another sub that does a reverse address lookup to obtain the host

RE: Chomp failing on NT

2003-07-21 Thread Dustin, Dave
Because you undef'd $/, chomp has nothing to act on. Chomp uses $/ to determine what to remove from the end of the line. -Original Message- From: Sabherwal, Balvinder (MBS) [mailto:[EMAIL PROTECTED] Sent: Tuesday, 22 July 2003 7:42 a.m. To: 'Arms, Mike'; '[EMAIL PROTECTED]' Subject:

Re: Chomp failing on NT

2003-07-21 Thread Steven Pappin
- Original Message - From: Sabherwal, Balvinder (MBS) To: 'Arms, Mike' ; '[EMAIL PROTECTED]' Sent: Mon 2003 Jul 21 15:42 Subject: RE: Chomp failing on NT The fine was created using vim on the NT machine and I tried deleting andre-creating it again which did

RE: Chomp failing on NT

2003-07-21 Thread Hugh S. Myers
See if vim is set to use 'nix style line endings. If it is, set it to DOS style line endings and try chomp again... --hsm -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Sabherwal, Balvinder (MBS) Sent: Monday, July 21, 2003 1:42 PM To: 'Arms, Mike';

Canadian Tax

2003-07-21 Thread P|r0
anyone knows where I can find a good perl module to calculate sales tax for Canada? I was trying to do it myself but seems to be more complicated than I thought. I need to calculate the HST, GST, and PST. Thanks.

RE: Chomp failing on NT

2003-07-21 Thread Eyrich, Christian
Here is the code for reading the file local $/ = undef; # read the entire file in one go hmm, the '$/' is a special variable used by chomp. The default value is the newline char open(IN, 'c:\tmp\dba_maint_nj2') || die Can't open pwd file: $!; $pwd = IN; # $pwd =~ s/\s*$/; #

Recall: Chomp failing on NT

2003-07-21 Thread Eyrich, Christian
Eyrich, Christian would like to recall the message, Chomp failing on NT. ___ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: Hash building

2003-07-21 Thread Arms, Mike
Hello, Ed. I'm not exactly clear on what you are doing or what the problem is. Let's see if this code essentially captures what you are doing: my @ip_addresses = get_ip_addresses(); my @ip_map = (); for ( @ip_addresses ) { # Do the reverse name lookup if we have not seen this IP

RE: Chomp failing on NT

2003-07-21 Thread Arms, Mike
Just some follow-up code to show that Dave is correct. perl -e $s=qq(test\n); $/ = undef; chomp $s; print qq('$s'); output: 'test ' Good catch, Dave. -- Mike Arms -Original Message- From: Dustin, Dave [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 3:03 PM To: 'Sabherwal,

RE: Chomp failing on NT

2003-07-21 Thread Arms, Mike
I note that you did not look at the actaul raw contents of the file like I recommended. You set $/ to undef so that you can slurp the whole file into the scalar. Are you sure your file doesn't have two CR-LF in it (assuming the contents are just the password)? So examine the contents of the

Bolding and Underlining.

2003-07-21 Thread Sara
I have an input coming from scrolling textbox eg. $description = qq~ This is my description. Here goes a couple of headings in it Heading abc: this is the heading one and needs to bold and underlined Heading xyz: needs to bold and underlined too. description continues here ~; I am

Re: Chomp failing on NT

2003-07-21 Thread $Bill Luebkert
Hugh S. Myers wrote: See if vim is set to use 'nix style line endings. If it is, set it to DOS style line endings and try chomp again... Bad advice which will confuse people and make them do the wrong thing. Perl handles either with no problem. Every one of my scripts has UNIX style line

Re: Hash building

2003-07-21 Thread $Bill Luebkert
Arms, Mike wrote: Hello, Ed. I'm not exactly clear on what you are doing or what the problem is. Let's see if this code essentially captures what you are doing: my @ip_addresses = get_ip_addresses(); my @ip_map = (); That should be: my %ip_map = (); for ( @ip_addresses )

RE: Hash building

2003-07-21 Thread Wayne Simmons
Can't you do something like: foreach (@IpAddy) { $Myhash{$_} = gethostbyIP($_); } if your sub isn't being called, then you should make sure that your IP sub is returning a list that you store in your array. (ie: print it out.) -Wayne Simmons -Original Message- From: Ed Welsh

Re: Bolding and Underlining.

2003-07-21 Thread $Bill Luebkert
Sara wrote: I have an input coming from scrolling textbox eg. $description = qq~ This is my description. Here goes a couple of headings in it Heading abc: this is the heading one and needs to bold and underlined Heading xyz: needs to bold and underlined too. description continues here