Another option is to forget OS detection and just look for the files.
open (FH, 'c:/snmpauto') || # I don't know Windows so this path syntax may be off open (FH, '/root/snmpauto') || die (q(Couldn't open the file!));
In reply to Re: how to recognize windows and linux os
by dorward
in thread how to recognize windows and linux os
by Manjunath
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |