diff --git a/util/mklink.pl b/util/mklink.pl index c8653cecc37852358a936fba593ab2c0af35de30..d9bc98aab8788cdcca76aecfa3e1a835537df856 100755 --- a/util/mklink.pl +++ b/util/mklink.pl @@ -15,12 +15,14 @@ # Apart from this, this script should be able to handle even the most # pathological cases. +use Cwd; + my $from = shift; my @files = @ARGV; my @from_path = split(/[\\\/]/, $from); -my $pwd = `pwd`; -chop($pwd); +my $pwd = getcwd(); +chomp($pwd); my @pwd_path = split(/[\\\/]/, $pwd); my @to_path = ();