http://www.perlmonks.org?node_id=1075754


in reply to Re^2: OS independent perl script
in thread OS independent perl script

Is %~dpn0 some bizarro shell magic then?