$instance = $instance . '/sys_script_list.do?SOAP';
Each time round the loop you do this, so $instance keeps getting this string appended to it. That's probably not what you want. Move that to before the start of the loop so it only happens once.
If you require any further assistance I suggest that you provide a bit more detail on the problem than simply "it breaks."
In reply to Re: Looping with SOAP::Lite fails
by hippo
in thread Looping with SOAP::Lite fails
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |