#139 syntax error

v0.3.0
closed-rejected
Debugger (177)
5
2005-02-10
2005-02-10
Anonymous
No

#####################################
#epic upgrade from http://e-p-i-c.sf.net/updates/testing
#syntax error at - line 23 ,near "sub main_child_process
#####################################

#!/usr/local/bin/perl
use strict;
my $dispatch_path;
SIG{ALRM} = sub {
alarm(60);
my $retry++;
opendir( DIR, "$dispatch_path" );
my @ipaddresses = grep { -d "$dispatch_path/
$_" && $_ !~ m/^\./ } readdir(DIR);
close(DIR);
foreach my $ip (@ipaddresses)
{
my $cpid = fork();
die unless defined $cpid;
if ( !$cpid )
{ #child process

exit;
}
}
}

sub main_child_process
{
}

Discussion

  • Stephan Ruehl

    Stephan Ruehl - 2005-02-10
    • status: open --> closed-rejected
     
  • Stephan Ruehl

    Stephan Ruehl - 2005-02-10

    Logged In: YES
    user_id=775841

    This is the error mesagge provided by the Pearl interpreter
    (run perl -c <file>). You forgot a ';':

    exit;
    }
    }
    }; <-- !!!

    sub main_child_process
    {
    }

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks