in reply to Perl File Handle Count not working as expected, why?
I was expecting it to go UP by 1 each time in the loop, but it stayed at 5. Why?
Because getpgrp returns the current process group. You want the current Process Id which is in the $$ variable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl File Handle Count not working as expected, why?
by almut (Canon) on Jul 14, 2010 at 18:10 UTC | |
by radnus (Novice) on Jul 14, 2010 at 18:23 UTC |