in reply to Re^5: system subroutine is ignored
in thread system subroutine is ignored

...or, maybe, (as poj notes earlier (but below) and as I later noted above), Njoud
  1. tried to insert poj's suggested test-code (batch script) directly into his Perl script?
  2. doesn't read carefully?
  3. doesn't have a firm grasp on his OS?
  4. etc... (possibilities too insulting to specify).

If you didn't program your executable by toggling in binary, it wasn't really programming!