Operating Systems > Linux and UNIX
i need book which explains mix of the kernel and commands
voidmain:
Perl is a VERY worthwhile language to use. It is very portable, very powerful and very easy to learn. No one language is the best at everything. I use both PHP and Perl. I use PHP mostly for web database programming and I use Perl for system scripting when more than just shell scripts are needed. They each have their strengths. I would suggest learning both PHP and Perl and you decide where it makes the most sense to use each. And there are a TON of Perl modules out there.
Chooco:
dude i can't get Perl to work on Linux. my windows computer can use perl easily but Linux hates it. it keeps saying Internal Server Error, the cgi-bin is ALL chmod 755 and the Apache config has the same lines in it as the Apache config on my windows computer (i changed the directories though, C:/perl/perl.exe is now /usr/bin/perl and so on) but it's still fudged. why does Linux make it so god damn hard to run anything? i asked at least 4 different forums how to install this and they are all completely stumped as to wtf is wrong.
voidmain:
Dude, try putting this line at the start of your script (so it produces the first line of output):
--- Code: ---
--- End code ---
This will fix your problem if you are getting this message in your error log:
--- Code: ---
--- End code ---
I personally find it MUCH easier to do web programming in Linux than on M$ systems. If the above doesn't fix your problem I will help you until we have your issue resolved. I assume you also know not to write your script on a Winblows box using notepad and then transfer it to the Linux box. Or if you do make sure you strip the carriage returns either by using FTP transfers in ASCII mode or do:
tr -d '\r' < yourscript.cgi > yournewscript.cgi
And I also assume that you know to make sure the script runs on the command line before trying to debug it through Apache..
[ June 12, 2002: Message edited by: VoidMain ]
voidmain:
Chooco, did my suggestion work for you?
dbl221:
Perl is fantastic as Void said. There is sooo many modules out there for perl on Linux that it is just mindblowing. PHP...no time for that yet. Perl is far better that shell scripting but for simple things bash snd company are fine.
Ruby is cool...try it...nice clean code.
Navigation
[0] Message Index
[*] Previous page
Go to full version