OK. I've found the problem.
For some reason, when I sort the file in Excel, it adds an additional comma to the end of some lines. The extra comma seems to be the culprit.
before sort:
/o=NWTR/ou=Alliance/cn=Recipients/cn=RDCampbell,"Campbell, Ronald",RDCampbell@NWTR.com,,,,,,,
after sort...
Thanks for the <CSV_IN>;.. Worked like a charm and is much cleaner than the method I was using.
Good point Steve, but I already checked that one. I've been bitten by that bug in times past when doing other stuff. Good thing to note though.
Ishnid and everyone else, I'm trying to figure out...
I don't really know how to title this message, so hope that worked ;)
I'm working on a program that parses and modifies a CSV file. The source file is an export of another companies address book. I make the necessary alterations to make it importable into our Active Directory as mail enabled...
Here's what I'm trying to do:
my @skipcn = ('KAbel', 'PAbell', 'tabney', 'TYost');
foreach my $compcn (@skipcn)
{
if ($compcn eq $cn)
{
print $compcn;
}
}
This works, but is case sensitive. I'd like to make it non-case sensitive. I found the use of...
OK, if that was really your intent with your post, then I appologize for my response. So many times, written posts like this are misinterpreted. I took your post to be a stab against me, and responded inappropriately.
Ishnid,
FYI, the reason I didn't post my code once I figured it out was that it wasn't complete yet. I'd rather post a commented, useful example than just a clip of code that doesn't do anything by itself. Thanks for making such a self serving unconstructive comment. Hope you feel better.
For...
Greetings and thanks in advance for any responses.
I'm new to Perl in particular and scripting in programming in general, and so far find it fascinating even if a bit frustrating at times.
I'm trying to write a PL file that will take one CSV file, parse it in (which I have done using...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.