So ya'll know, sometimes (like when I wrote car talk the other day) when I just breifly described a problem, someone imedatly came back with that the problem was or similar circumstances... Anyways, I attempted an approximate code snipet below...
for my $x (0..4){ # pesudo calling function
system("(sleep 5); touch done_" . $x);
}
&wait(4);
sub wait{
my $c = shift;
my $i=0;
while ($c != $i){ # If I make this $c==$i, returns no problem
for my $j (0..$c){
if (-e "done_" . $j){
unlink "done_" . $j;
$i++;
}
}
}
}
Now there's nothing above which is screaming to me that the sub routine wait won't be called, but apparently it never is...
----
Zak
undef$/;$mmm="J\nutsu\nutss\nuts\nutst\nuts A\nutsn\nutso\nutst\nutsh\
+nutse\nutsr\nuts P\nutse\nutsr\nutsl\nuts H\nutsa\nutsc\nutsk\nutse\n
+utsr\nuts";open($DOH,"<",\$mmm);$_=$forbbiden=<$DOH>;s/\nuts//g;print
+;