in reply to Re: recognizing OS
in thread recognizing OS
cwd() can be changed to just '.'
opendir my $dir, '.' or die "Can't read current directory (".cwd()."): $!\n";
That applies to the OP too. He could drop $dirname from the command line both simplifying the code and removing his bug.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: recognizing OS
by Anonymous Monk on May 03, 2008 at 08:38 UTC |