Benjamin Jeeves wrote:
> Hi all
>
> I have a statement a bit like this
>
> while ( <filein> )
> {
> do "netbios.pl";
> do "udp_port137.pl";
> and so on
>
> but the second do statement does not execute can anyone tell me why?

The program will halt if netbios.pl has an 'exit' or 'die' statement,
but
it's also silent if it fails. If the file can't be opened or won't
compile
there will be an error message in $! or $@ respectively, so check
these after each 'do':

    do "netbios.pl";
    if (my $error = $! || $@) { die $error };

HTH,

Rob






-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to