chicken: (39. BBEdit)
[personal profile] chicken
Hey Perl geeks, may I request your help?

You know how in PHP you can do, e.g.:

print "<FORM METHOD=\"GET\" ACTION=\"$PHP_SELF\">\n";

Is there a similar thing in Perl? Certainly it won't be called anything obvious like $PERL_SELF, now, will it?

Grrr. Argh.

Thanks in advance for any advice. I am STUPID! *head bashing into desk*

(no subject)

Date: 2005-03-08 12:01 am (UTC)
From: [identity profile] paulv.livejournal.com
$0 (zero) is the name of the script that is being run without path information. I think $PHP_SELF is /path/to/file.php. I'm not sure how $0 would work in a CGI, but it may be worth a shot. If you're using CGI.pm, you can use self_url() or url(). You also may be able to find something in %ENV that the web server would hand you, but I don't know what the key name would be.

(no subject)

Date: 2005-03-08 02:53 am (UTC)
From: [identity profile] chicken-cem.livejournal.com
Thank you so much; self_url() sounds really familiar.

Profile

chicken: (Default)
chicken

April 2009

S M T W T F S
   1234
56 78 9 1011
12131415161718
192021 22232425
2627282930  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags