Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How can I find program location?

From: "Jürgen Exner" <jurge...@hotmail.com>
Newsgroups: comp.lang.perl.misc,comp.lang.perl.modules
References: <9vuehq$g5j$1@panix3.panix.com>
Subject: Re: How can I find program location?
Date: Thu, 20 Dec 2001 21:06:15 -0800
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: jurgenex-ri2.dns.corp.microsoft.com
X-Original-NNTP-Posting-Host: jurgenex-ri2.dns.corp.microsoft.com
Message-ID: <3c22c347@news.microsoft.com>
X-Trace: 20 Dec 2001 21:06:15 -0800, jurgenex-ri2.dns.corp.microsoft.com
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!sea-feed.news.verio.net!news.verio.net!news.microsoft.com

"John Brock" <jbr...@panix.com> wrote in message
news:9vuehq$g5j$1@panix3.panix.com...
> I want my Perl program to be able to find its absolute location
> on both Windows and Unix, no matter how it is called.  In particular,
> on Windows the path must include the disk letter (e.g.,
> E:\mystuff\progs\some_dir\my_prog).  How do I do this?

See the FindBin module "perldoc FindBin"

jue