"What is the problem????"
Scoping. $sqi is defined in an if statement (within a for loop), and you expect to use it outside of this. See your previous question usage of "my" keyword. use strict; would have caught this, among other problems:
Global symbol "$sqi" requires explicit package name at mongodb.pl line + 42.
Also Coping with Scoping.
Update: slight rewording
In reply to Re: Problem with inserting data into MongoDB
by marto
in thread Problem with inserting data into MongoDB
by ravi45722
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |