Hello All,
I'm having some problem with the File::Spec module's rel2abs() method when working in a CGI environment, basically, when a call is made like this:
#!/usr/bin/perl
use CGI::Carp "fatalsToBrowser";
use File::Spec;
use CGI qw(:standard);
print header();
print File::Spec->rel2abs(__FILE__);
via webbrowser - it'll just hang forever.
Via the command line, it'll come back with the correct answer right away.
Here's the ENV:
bash-2.05b$ perl -v
This is perl, v5.8.2 built for i386-freebsd
and,
bash-2.05b$ uname -a
FreeBSD web2.host.ie 4.9-STABLE FreeBSD 4.9-STABLE #0: Fri Feb 27 10:1
+1:56 GMT 2004 root@web2.host.ie:/usr/src/sys/compile/WEB i386
Is there something I'm missing that may lead me to more clues?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.