in reply to text file w/o CGI

I'm not suprised one bit by the responses you got.

I agree with all of them.

It is ill-advised to attempt to process form data, without the CGI module.

Why you might ask, cause it was written for that particular task, and it does it's job well, and it's fairly large....

It is not impossible, but it's the #1 Cardinal sin, next to not using -w and strict.

And if your server does not allow CGI, then you really have some problems.

Do a search on 'CGI' and look at the Q&A and even the Tutorials section, as this is a common question.

 
___crazyinsomniac_______________________________________
Disclaimer: Don't blame. It came from inside the void

perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"

Replies are listed 'Best First'.
Re: (crazyinsomniac) Re: text file w/o CGI
by spunkcell (Initiate) on Apr 05, 2001 at 05:40 UTC
    Thanks everybody. Great answers. I think the web administrator of the company we are contracting to is trying to be funny. Oh well, I'll try to find another way to get those things to a file. They use Vignette and I was told I could only use PERL without CGI and couldn't access CGI's outside the server. But I need to get these names and emails to a list somehow. Thanks again for the great and fast responses. I may have to learn PERL if the communities are this helpful.

      If you're living in a Vignette enviroment, you can (ab)use perl without doing so via CGI by running it with something like [exec /usr/bin/perl ...] (IIRC), but that's an extremely kludgey solution and bound to give you more grief than is worth.

      Why not just use native Vignette and Tcl commands to do what you want? My Vignette/Tcl is a bit rusty, but something along the following lines should work ...

      [SET file [open /path/to/my/file.txt a]] [puts $file "[SHOW name] [SHOW email]"]

      (Error checking left as an exercise for the reader. :-)

          --k.