in reply to cross platform scripts
BEGIN { if ($^O eq "MSWin32") { require Win32::TieRegistry; # require not use # read some stuff from registry } else { open (CONFIG, '/etc/something') or die "$!:Blech\n"; # read some config info in } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: cross platform scripts
by Anonymous Monk on Jan 21, 2003 at 22:45 UTC |