We still don't have enough information. There's no obvious problem. Like vinoth.ree says, try checking for errors. I like to use this pattern with system:
system(...) == 0 or die;Maybe sub2 is failing to open its input file. Always error-check opens as well.
open FOO, 'foo.txt' or die;In a finished script, it's nice to have some kind of error message on the die
open FOO, '<', $filename or die "Can't open $filename: $!;... but get that or die on there, it can save you a lot of head-scratching.
In reply to Re^4: system() issue
by Anonymous Monk
in thread system() issue
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |