On Wed, Jun 27, 2001 at 12:08:26PM -0700, Chuck Ivy wrote:
> if ($0=~m#^(.*)\\#){ $cgidir = "$1"; } # win/dos
> elsif ($0=~m#^(.*)/# ){ $cgidir = "$1"; } # Unix
> else {`pwd` =~ /(.*)/; $cgidir = "$1"; } # Unix
This is just a less portable implementation of what FindBin.pm does, which
comes standard with Perl.
Michael
--
Administrator www.shoebox.net
Programmer, System Administrator www.gallanttech.com
--
- Converting Unix paths to windows Daryl Hoyt
- Re: Converting Unix paths to windows Aaron Craig
- Re: Converting Unix paths to windows Hasanuddin Tamir
- RE: Converting Unix paths to windows Robin Lavallee (LMC)
- Re: Converting Unix paths to windows Chuck Ivy
- Michael Fowler
