in reply to Re: Re: Find Comma in a string
in thread Find Comma in a string

$input_string = "jdoe,dept,comp\n"; chomp $input_string; ($cn_temp, $ou_temp, $o_temp) = split /,/ , $input_string; print "cn=$cn_temp,ou=$ou_temp,o=$o_temp\n";
will print "cn=jdoe,ou=dept,o=comp" -- Perl has many wonderful string tools, you dont have to do it like C. =)

-Waswas