I want to expand the script as a cross-platform script; both Linux and Windows. Is there a Perl function, command, structure - or something - I can employ in my script to somehow "detect" what OS it's running on? Is it something plainly obvious that I'm missing?my $dirname=cwd(); my $sys_get_dirs = "ls -l $dirname | egrep \'^d\'"; my @dirlist=`$sys_get_dirs`;
In reply to recognizing OS by PerlZealot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |