Re: simple
A table can be a better solution Rahul Garg wrote: Hello, In my perl script , i am writing HTML code..within it i am using nbsp for spaces , as i need a lot spaces is there any other solution. Thanx in advance, Rahul Garg. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Web Test Sites
The best thing to do is get an oldish Pentium, say P200 32 Mb 1 G b hard drive and load Linux, Apache and perl onto it. There are lots of cover disc tasters or if you are on cable you can download and ISO image from lots of websites. This will pretty much work 'straight out of the box' unless you want to do something fancy and it is all yours for test purposes you can mangle it up any way you like. If it really goes wrong, just reinstall it. Frank J. Schmuck wrote: Can someone point me to a list of sites that allow free testing of cgi scripts? I had such a list at one time but have misplaced it just as I need it. Thanks Frank
Re: Modules question
On Win32, typing ppm verify at the command prompt will list all the modules installed on your system quit will exit the ppm tool [EMAIL PROTECTED] wrote: Help with Modules please. Is there a option I can run with perl to find out if a particular module is installed? Thanks, Anna
Re: trailing newline
This bit of code generates a file with all three types of new line in it open(TESTFILE, test.txt) or die Sorry, cannot open the test file; binmode(TESTFILE); print TESTFILE This is a DOS line ending\x0d\x0a; print TESTFILE This is a Mac line ending\x0d; print TESTFILE This is a Unix line ending\x0a; print TESTFILE This is a DOS line ending\x0d\x0a; print TESTFILE This is a Mac line ending\x0d; print TESTFILE This is a Unix line ending\x0a; print TESTFILE This is a DOS line ending\x0d\x0a; print TESTFILE This is a Mac line ending\x0d; print TESTFILE This is a Unix line ending\x0a; close TESTFILE; print The test file test.txt has been successfully written\n; Stéphane JEAN BAPTISTE wrote: Hi I need the (hexa?) code for trailing newline, but not \n. I need a code like (#233 or eacute for é) tks
Re: Perl the web
I believe that the www.easyJet.com online booking system is written in Perl. Sally wrote: Can anyone tell me of some uses of perl on the web. I know that guestbooks and forms can be done in perl but I'd like to know of more, Regards, Sally
Re: Licensing
I do not have any direct experience of this, but I read in magazine that these Perl to exe interpreters embed the perl into the exe as plain text. The original code can be recovered by opening the exe in an editor and copying and pasting it into a script file that can then be run normally. -Original Message- From: Robin Lavallee (LMC) [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Date: 01 June 2001 16:49 Subject: RE: Licensing Hi people, Has anyone been able to conceive some kind of licencing scheme in Perl ? That is, I want to deploy a Perl program that the customer will only be able to use for 30-60-90-30n days. This causes great problem to implement in Perl since the customer could simply comment-out the line that does the check (no matter what kind of check that is). I could use obsufucation technique, but that seems annoying. Anyone has a suggestion Hi Robin, wnat platform are you on? If it is Microsoft then you might want to look at the perl development kit from active state. They have a utility to convert your script to an exe file. There is also perl2exe from another vendor for the same thing. I am on Solaris (2.6-2.8 depending). I just tried perl2exe and it works like a charm. (At least, it seems to). Do you know how reliable is it ? It would provide a quick and cheap solution. How does it work internally ? It embeds a Perl interpreter inside and self interpret the rest of the data? -Robin
Re: Re: Licensing
Licensing and restriction are tied together, If I write a Perl program and license it to a client and he cannot easily copy or pass it on to a third party then I can continue to profit from my work. If the source is available he can pass it on to any third party who does not have to pay a licence fee to me. Restriction allows me to control this and hopefully continue to program. The question is how difficult I have to make this to stop most illicit use of my work. There has to be a middle way between all source being secret and some confidentiality. If someone is going to use my work to make money then I should have a right to secure some of this. -Original Message- From: Abdulaziz Ghuloum [EMAIL PROTECTED] To: Robin Lavallee (LMC) [EMAIL PROTECTED]; [EMAIL PROTECTED] [EMAIL PROTECTED] Date: 02 June 2001 17:12 Subject: Fw: Re: Licensing Hello It seems like you got two issues mixed up slightly. One is the licensing issue and the other is the restriction issue. Let me elaborate: Licensing is an agreement between the program supplier and the user regarding the use of the program, redistribution restrictions, the freedom to modify, ... You can adopt the licensing agreement most suitable to your needs from many licensing schemes already available. Probably by looking at the license agreement of any shareware application, you will get an idea of how it's done to limit the number of days the user may use the program before paying or removing the program. This is the same whether the program is written in C, Java, Perl, VB, or any language. Users are expected to obey the license. Now if you want to force your users to obey the license, you get into trouble. First, assume you can force your users to use the program for n-days, then you would not even need to supply any other restrictions in your license. Can you, using your program, *force* your users to obey the license. You already answered by saying that users can simply comment out the check point. BTW, this is not a perl limitation. There exists many decompilers in the market for decompiling JAVA, VB, and even C compiled binaries. The quality of these decompilers differ greatly, but bad decompilers can be thought of as giving obfuscated code of the same program. Obfuscation does not help since it assumes no one (or program) would be smart enough to reverse it. I believe perl compilers come in two flavors: one that actually maps every perl statement into the appropriate C statement making a C program that is equivalent to the Perl program, then compiling the C program. The other type of compilers translates your program into perl OP-Code which is faster to load (the parsing step is mostly eliminated). Since the two programs (yours and the compiled one) are equivalent, the compiled version can be reversed back to a different version of your program. The check points can be then removed. I believe the compiled perl programs are harder to crack, because of the use of translation to the C program which is practically unreadable, and then the use of optimized C compilers which produce binaries that are hard to map back to the appropriate C functions. VB programs contain almost an explicit version of the VB source code making the decompilation into an intelligible program easy. For JAVA, look at the JAVA-Decompilers-HOWTO. So, the bottom line is, you cannot have a 100% safe way of preventing your users from removing any check point. (I live in a third world country where you can get a fully functional version of AutoCAD or 3D-Studio for 5 USD, and the original version of these software come with hardware dongle) There is another issue that I would like to leave open which is: Some perl compilers compile all modules used by the program in order to eliminate module dependencies. Your program comes as one file that runs without requiring such and such modules. How would this influence your licensing agreement? Does your program need to be GPLed if it `use`s a GPLed module? On Fri, 1 Jun 2001 11:28:47 -0400 , Robin Lavallee (LMC) said: Hi people, Has anyone been able to conceive some kind of licencing scheme in Perl ? That is, I want to deploy a Perl program that the customer will only be able to use for 30-60-90-30n days. This causes great problem to implement in Perl since the customer could simply comment-out the line that does the check (no matter what kind of check that is). I could use obsufucation technique, but that seems annoying. Anyone has a suggestion ? -Robin _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Matt Wrights Guestbook
Sorry, I omitted that particular reason for possible failure, perhaps the enquirer could tell us what OS they are running and if they are on machine of their own or rented server space. Then we could make a start on why it is not running. SunDog wrote: But that's the rub ... Change the first line ... isn't it Nigel ? if this is done in Windows, the script can get corrupted ... the result is ^M's all over the place ... When many of these scripts were first made available, changes were made directly on the servers , usually with telnet ... so the files were configured and saved in ISO format ... not always true today ... regards SunDog == At 05:36 PM 5/23/01 +0100, you wrote: Dear all, Actually it does not depend on having an installation of Perl at all, let alone a sane one. I am assuming that the enquirer can take my supplied code, change the first line so that it points to their Perl install directory. Save it as test.pl in a suitable directory, change the permissions and then execute it in their browser or from the command line. If they can do this they will know that they have got most of the set up right and can then attempt to execute a 'real' script. Secondly if they do not understand html how are they going to customise and edit a Guest Book script until it works to their satisfaction. Regards Nigel R Randal L. Schwartz wrote: Nigel == Nigel G Romeril [EMAIL PROTECTED] writes: Nigel Try something like; Nigel #!/usr/bin/perl -w Nigel print Content-type: text/html\n\n; Nigel print Hello world, it works!\n; Nigel This should print a line of black text on a white background if your path, permissions etc are OK Well, the real simplest is: #!/bin/sh echo content-type: text/plain echo echo hello world which doesn't depend on a sane location of Perl installation, or even understanding HTML. :) If you can get exactly hello world from that, you're on your way... if you can't, you need to seek local authority to discover how things are set up. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 [EMAIL PROTECTED] URL:http://www.stonehenge.com/merlyn/ Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Re: Matt Wrights Guestbook
Dear all, Actually it does not depend on having an installation of Perl at all, let alone a sane one. I am assuming that the enquirer can take my supplied code, change the first line so that it points to their Perl install directory. Save it as test.pl in a suitable directory, change the permissions and then execute it in their browser or from the command line. If they can do this they will know that they have got most of the set up right and can then attempt to execute a 'real' script. Secondly if they do not understand html how are they going to customise and edit a Guest Book script until it works to their satisfaction. Regards Nigel R Randal L. Schwartz wrote: Nigel == Nigel G Romeril [EMAIL PROTECTED] writes: Nigel Try something like; Nigel #!/usr/bin/perl -w Nigel print Content-type: text/html\n\n; Nigel print Hello world, it works!\n; Nigel This should print a line of black text on a white background if your path, permissions etc are OK Well, the real simplest is: #!/bin/sh echo content-type: text/plain echo echo hello world which doesn't depend on a sane location of Perl installation, or even understanding HTML. :) If you can get exactly hello world from that, you're on your way... if you can't, you need to seek local authority to discover how things are set up. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 [EMAIL PROTECTED] URL:http://www.stonehenge.com/merlyn/ Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!