On 11/21/20 7:42 PM, wagsworld48 via beginners wrote:
It was a good idea, but that gives me zsh which is what in this case
BBEdit uses to execute the script. So with your code of $ENV, then I
looked at the variables within ENV and picked one that was there for
BBEdit and not there in a normal terminal run. Know other ways, but
this at least is one way to accomplish the task..
ok, i am smelling an XY problem here. why do you need to know from where
the perl was executed? in general processes don't know the path of their
parent process. one way around this is to pass a special value to the
perl process (via argument or env) that tells the perl of its origin.
but a bigger question is, why do you need/want to know this? what
difference will it make to the perl process?
thanx,
uri
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/