[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Default environment variables in MacPerl?



Paul Wayne Rodney <pwrodney@mt-muse.com> writes:
}Under unix, default %ENV includes info like PATH and USER etc. This isn't
}working for me under the Mac OS, so I'm wondering if there's an

There is no Unix-like environment in MacOS, hence no way for Perl to
populate %ENV for you.

}alternative way to get at information like the path to the currently
}exectuted MacPerl script?

The full pathname to the currently running script is in $0.  Other things,
like $ENV{USER} and $ENV{HOME}, just set in your script:

$ENV{USER} = "whatever";

etc.

}
}Many thanks,
}Paul
}
}***** Want to unsubscribe from this list?
}***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch


---
Paul J. Schinder
NASA Goddard Space Flight Center
Code 693, Greenbelt, MD 20771
schinder@pjstoaster.pg.md.us



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch