in reply to Parsing ldap attributes into a csv
To access a hash key, use curly brackets, not parens. This fixes the errors:
foreach my $key (keys %data) { print "key=$key, value=$data{$key}\n"; $data{$key} =~ s/(^|$)/"/g if $data{$key} =~ /,/; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Parsing ldap attributes into a csv
by lvirden (Novice) on Mar 02, 2018 at 20:22 UTC | |
by AnomalousMonk (Archbishop) on Mar 02, 2018 at 20:49 UTC |
In Section
Seekers of Perl Wisdom