govindrk has asked for the wisdom of the Perl Monks concerning the following question:

When extracting a string from the database i get this following message. Can't use string ("uid=A009957,ou=people,o=bestbuy.") as an ARRAY ref while "strict refs" in use at oraLoad.pl line 936. Is a there solution in perl to get rid off this. thanks govind

Replies are listed 'Best First'.
Re: How to solve this problem with string
by davorg (Chancellor) on Sep 17, 2001 at 18:26 UTC

    Well it sounds like you're using a string as an array reference at line 936 of oraLoad.pl. This is obviously a bad thing as strings and array references are very different things, but without seeing the code it's impossible to give any concreate advice on how to fix the problem.

      This field is a string variable and the value returned is less than 80 characters with comma separated. I was able to extract characters with length more than 80. $dn; $dn = "uid=123344, ou=person.people, o=worldcom.com"; this is the string that needs to be printed. i use print " $dn \n"; the above error triggers. I would great i some one could further light on this. thanks govind