contrite_newbie has asked for the wisdom of the Perl Monks concerning the following question:
what I need to do is take the $dn and $samACCOUNTNAME values and pass them into a new array that I can reference for matching to a value in $csv. Any suggestions would be cool...I keep over-complicating this and I am getting frustrated... TIAuse warnings; use strict; my $LDIF = 'c:/test/any.ldf' my $csv = 'c:/test/any.csv' open ("FILE1", $LDIF) || die "can't open $LDIF: $!"; local $/ = "\n\n"; # Set an empty newline as line separator while (<$LDIF>) { my ($dn) = /^dn: (.*)$/m; my ($samACCOUNTNAME) = /^samACCOUNTNAME: (.*)$/m; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing 2 elements into a new associative array
by bart (Canon) on Oct 07, 2004 at 03:40 UTC | |
by contrite_newbie (Novice) on Oct 07, 2004 at 04:21 UTC | |
|
Re: Passing 2 elements into a new associative array
by dragonchild (Archbishop) on Oct 07, 2004 at 03:36 UTC | |
by contrite_newbie (Novice) on Oct 07, 2004 at 04:25 UTC | |
by revdiablo (Prior) on Oct 07, 2004 at 16:29 UTC | |
by contrite_newbie (Novice) on Oct 08, 2004 at 00:27 UTC |