Subject: | Check for 32/64 bit perl does not work |
There are a couple of problems:
* `which perl` would give you the first perl in PATH, but not necessarily the perl which is currently in use for running the test. Use $^X instead (also, "which" is not available on non-Unix platforms, as an additional problem)
* `file ...` may return results like "symbolic link to ...". And again, this is Unix-only. It's probably better to use the Config module and look at something like byteorder, archname, ivsize or so...