I have a python script which runs Perl script

```
perl = "C:\\perl64\\bin\\perl.exe"
perl_script = "C:\\Users\\gdarmon\\test.pl"
pl_script = subprocess.Popen([perl, perl_script,"test.bin", "test.vhx", "--width=128"], stdout=sys.stdout)

```

I do not want to hardcode the location of perl installation.
how can I find it? windows and linux   

python 3.8