--nFreZHaLTZJo0R7j
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Feb 06, 2008 at 10:06:05PM -0500, Mag Gam wrote:
> Hi All,
>=20
> I have been using mod_perl, and I have several perl-cgi files that use the
> open(). I use this function to open/include my header, footer, basically a
> poor man template system. Currently, when I open a file I have to use the
> absolute path (/var/www/appname/top.inc). Is it possible for me to use j=

ust
> 'top.inc'? I think it trying to read from DocumentRoot, which is causing =

the
> issue. Has anyone ever faced this?
>=20

I just set something like this in global.asa:

my $base_dir =3D cwd . '/';

Then I can make the $base_dir available globally and just use that
anywhere I need to refer to an on disk file.

Regards,

-Roberto

--=20
Roberto C. S=E1nchez
http://people.connexer.com/~roberto
http://www.connexer.com

--nFreZHaLTZJo0R7j
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHqnaQ5SXWIKfIlGQRAui5AKCb+dxo6Se7QhTUsKYnIb YUdzcoSwCguzi8
+yLFnkIF7CcF2aw4eBc/jnE=
=y9pZ
-----END PGP SIGNATURE-----

--nFreZHaLTZJo0R7j--