Another thing:
I don't usually edit posts, but in this case, (code errors/points) it helps to localize it.
Look at the post above, where I added the red comment.
you have "my $output" defined within the "while" block.
Once you exit that block, the $output variable goes out of scope, and disappears. Sometimes, errors are lost in plugin code, or globals, so you might not be getting the error. Running perl -c on a file will often catch it.
That might be one of the other problems. You need to define $output outside any block, inside the sub {} block.
BTW: that code fragment has other problems, missing } and $results is not defined either, but the point I wanted to make was the scope issue, and that is a big one.
PUGDOG� Enterprises, Inc.
The best way to contact me is to NOT use Email.
Please leave a PM here.
I don't usually edit posts, but in this case, (code errors/points) it helps to localize it.
Look at the post above, where I added the red comment.
you have "my $output" defined within the "while" block.
Once you exit that block, the $output variable goes out of scope, and disappears. Sometimes, errors are lost in plugin code, or globals, so you might not be getting the error. Running perl -c on a file will often catch it.
That might be one of the other problems. You need to define $output outside any block, inside the sub {} block.
BTW: that code fragment has other problems, missing } and $results is not defined either, but the point I wanted to make was the scope issue, and that is a big one.
PUGDOG� Enterprises, Inc.
The best way to contact me is to NOT use Email.
Please leave a PM here.