Matt's Script Archive, Inc. Works for multiple forms & users. Free - v. 1. 9. 3 - July 1. Guestbook. Allow users to sign in and leave their name, contact and comments! Includes ability to redirect users after signing, log entries and e- mail upon new entries. Free - v. 2. 3. 1 - October 2. WWWBoard. A threaded discussion forum that allows users to post new messages, followup to existing ones and more. Includes a basic admin to maintain the board. Free - v. 2. 0. A2. January 7, 2. 00. Simple Search. Allows you to integrate a basic keyword and boolean search program into your site so that users can search specified text and HTML documents. Free - v. 1. 0 - December 1. Counter. Uses a C program to generate images on the fly. You can set border size, transparency, use an invisible count, and more. Limited to counting one page. Free - v. 1. 1. 1 - January 1. Text. Counter. Display a text count of visitors to your web pages. Includes: zero padding, file locking, linking the count, displaying begin date and counting multiple pages. Free - v. 1. 2 - May 1. Random Text. A program that randomly chooses a section from a plain text file that contains a series of phrases, quotes, lines of text, html tags, etc. Free - v. 1. 0 - July 1. Text. Clock. Text. Clock can show your visitors several variations on the current time and/or date. Choose what details to include and link the date to any site. Free - v. 1. 0. 2 - July 1. NAME; VERSION; DESCRIPTION. How do I do (anything)? How can I use Perl interactively? How do I find which modules are installed on my system? How do I debug my Perl programs? How do I profile my Perl programs? I have a perl program written by someone else. When I run it, it silently exits without writing anything to the logfile. Is there a way I can run this Perl program step by step, line by line by the. Impatient Perl by Greg London (Feb 7, 2004). Read the entire book free online. You write code for a living, and your inherit a legacy program written in Perl. You can program in your native language in your sleep. System will execute the $command with @arguments and return to your script when finished. Read the documentation for system for the nuances of.Free for all Links. Allow your users to add their own link to specified categories. Running total of number of links and time last link was added are also displayed. Free - v. 2. 2 - July 1. HTTP Cookie Library. Allows you to easily use cookies by simply calling on routines from within your scripts to set, retrieve, compress, and modify persistent cookies. Free - v. 2. 1 - December 2. Countdown. Implement a simple countdown to a specific date in your web pages. Set the countdown accurate to the second, minute, hour, day, month or year. Free - v. 1. 2. 1 - October 0. Extras. Add- ons and modifications for the scripts at Matt's Script Archive. Snippets of Code. Small pieces of code which don't merit their own page, but are useful. Welcome to Matt's Script Archive. Offering free CGI scripts to the web community since 1995! The CGI Resource Index has over 3,0. CGI programs. Matt's Hosted Software as a Service. Form. Mail. com. If our free script is too complicated to setup, have your forms processed by us for less than $1 per month! Survey. Factory. An advanced online survey builder that gives you the power to ask and the analysis to know. Matt's Free C++ CGI Programs. Text. Counter C++Display a text count of visitors to your web pages. Includes: zero padding, file locking, linking the count, displaying begin date and counting multiple pages. Free - v. 1. 3. 1 - June 2. Text. Clock C++Text. Clock can show your visitors several variations on the current time and/or date. Choose what details to include and link the date to any site. Free - v. 1. 0. 3 - March 2. Other People's Free Perl CGI Scripts. Book 'em Dano. A very simple logging script that will tell you where your users come from and what browser they used. By: Spider. Free - v. July 1. 0, 1. 99. Project. This project was started by the London Perl Mongers with the goal of creating drop- in replacements for the scripts found at Matt's Script Archive. These replacements have been released under the GPL and Artistic License, allowing us to offer them to you. Help Center. Wonderful resources when installing, using and modifying our scripts. Readme Files. This is the documentation supplied with the scripts found at MSA. A must read! Current Sponsors, Great Products. Special thanks to Dave Jackson at World Wide Mart for providing server space to MSA. What does it mean? What's Make. Maker? AUTHOR AND COPYRIGHTNAMEperlfaq. Programming Tools. VERSIONversion 5. DESCRIPTIONThis section of the FAQ answers questions related to programmer tools. How do I do (anything)? Have you looked at CPAN (see perlfaq. The chances are that. Here's a brief index: Basics. Execution. Functions. Objectsperlref - Perl references and nested data structuresperlmod - Perl modules (packages and symbol tables)perlobj - Perl objectsperltie - how to hide an object class in a simple variable. Data Structuresperlref - Perl references and nested data structuresperllol - Manipulating arrays of arrays in Perlperldsc - Perl Data Structures Cookbook. Modulesperlmod - Perl modules (packages and symbol tables)perlmodlib - constructing new Perl modules and finding existing ones. Regexesperlre - Perl regular expressionsperlfunc - Perl builtin functions> perlop - Perl operators and precedenceperllocale - Perl locale handling (internationalization and localization)Moving to perl. Linking with Cperlxstut - Tutorial for writing XSUBsperlxs - XS language reference manualperlcall - Perl calling conventions from Cperlguts - Introduction to the Perl APIperlembed - how to embed perl in your C program. Varioushttp: //www. FMTEYEWTK. tgz. (not a man- page but still useful, a collection of various essays on. Perl techniques)A crude table of contents for the Perl manpage set is found in perltoc. How can I use Perl interactively? The typical approach uses the Perl debugger, described in the. You can also examine the symbol table, get stack. You can also use Devel: :REPL which is an interactive shell for Perl. REPL - Read, Evaluate, Print, Loop. It provides. various handy features. How do I find which modules are installed on my system? From the command line, you can use the cpan. You can also use cpan. Inside a Perl program, you can use the Ext. Utils: :Installed module to. The standard library which comes with Perl just shows up. If you can. read the documentation the module is most likely installed. By turning. on warnings and strictures, you can head off many problems before. You can find out more about these in strict. Beyond that, the simplest debugger is the print function. Use it. to look at values as you run your program: print. STDERR. It's fully explained in perldebug. If you'd like a graphical user interface and you have Tk, you can use. It's on CPAN and available for free. If you need something much more sophisticated and controllable, Leon. Brocard's Devel: :ebug (which you can call with the - D. Debug. gives you the programmatic hooks into everything you need to write your. You can also use a commercial debugger such as Affrus (Mac OS X), Komodo. Activestate (Windows and Mac OS X), or EPIC (most platforms). How do I profile my Perl programs?(contributed by brian d foy, updated Fri Jul 2. PDT 2. 00. 8)The Devel. Perl programs. The Devel: :NYTProf (New York Times Profiler) does both statement. It's available from CPAN and you also invoke. NYTProfsome. The nytprofhtml. HTML report. similar to the Devel: :Cover report: nytprofhtml. You might also be interested in using the Benchmark to. You can read more about profiling in Programming Perl, chapter 2. Mastering Perl, chapter 5. Schwartz writes about profiling in . If you write Perl, or spend much time reading. Perl, you will probably find it useful. Of course, if you simply follow the guidelines in perlstyle. The habit of formatting your code. Your editor can and should. The perl- mode or newer cperl- mode for emacs. Tom Christiansen and many other VI users swear by. In insert mode, ^T is. D is for undenting, and ^O is for blockdenting- -as. A more complete example, with comments, can be found at. TOMC/scripts/toms. Is there an IDE or Windows Perl Editor? Perl programs are just plain text, so any editor will do. If you're on Unix, you already have an IDE- -Unix itself. The Unix. philosophy is the philosophy of several small tools that each do one. It's like a carpenter's toolbox. If you want an IDE, check the following (in alphabetical order, not. Eclipsehttp: //e- p- i- c. The Eclipse Perl Integration Project integrates Perl. Eclipse. Enginsitehttp: //www. Perl Editor by Eng. In. Site is a complete integrated development. IDE) for creating, testing, and debugging Perl scripts. Windows 9x/NT/2. 00. XP or later. Kephrahttp: //kephra. GUI editor written in Perl using wx. Widgets and Scintilla with lots of smaller features. It's open source under the Artistic License. It. is one of the newer Perl IDEs. Perl. Builderhttp: //www. Perl. Builder is an integrated development environment for Windows that. Perl development. Perl+http: //helpconsulting. From Help Consulting, for Windows. Visual Perlhttp: //www. Products/Visual. In any emacs the cperl- mode (M- x cperl- mode) gives you. Perl editing mode in any editor. If you are using Windows, you can use any editor that lets you work. Note. Pad or Word. Pad. Word processors, such as. Microsoft Word or Word. Perfect, typically do not work since they insert. You can also download text editors designed. Textpad (. http: //www. Ultra. Edit ( http: //www. If you are using Mac. OS, the same concerns apply. Mac. Perl (for Classic. Popular external editors are. BBEdit ( http: //www. Alpha (. http: //www. Alpha/Alpha. 8. html ). Mac. OS X users can use. Unix editors as well. The following are Win. IDEs that support Perl: There is also a toyedit Text widget based editor written in Perl. Tk module on CPAN. The ptkdb. ( http: //ptkdb. Perl/Tk- based debugger that. Perl Composer. ( http: //perlcomposer. IDE for Perl/Tk. GUI creation. In addition to an editor/IDE you might be interested in a more. Win. 32. Your options include. Cygwin is covered by the GNU General Public. License (but that shouldn't matter for Perl use). Cygwin. contains (in addition to the shell) a comprehensive set. Unix toolkit utilities. Where can I get Perl macros for vi? For a complete version of Tom Christiansen's vi configuration file. Tom. The file runs best with nvi. Berkeley, which incidentally can be built. Perl interpreter- -see http: //www. Where can I get perl- mode or cperl- mode for emacs? These should. come with the standard Emacs 1. Note that the perl- mode of emacs will have fits with . You. are probably using . A small demo can be found at the. Tom? Most. GUI toolkits have a perl interface: an incomplete list follows. Tk. This works under Unix and Windows, and the current version doesn't. Windows as it used to. Some of the gui elements. The interface is very natural. It hasn't been updated in a while. Wx. This is a Perl binding for the cross- platform wx. Widgets toolkit. ( http: //www. It works under Unix, Win. Mac OS X. using native widgets (Gtk under Unix). The interface follows the C++. C++. documentation. Gtk and Gtk. 2These are Perl bindings for the Gtk toolkit ( http: //www. The. interface changed significantly between versions 1 and 2 so they have. Perl modules. It runs under Unix, Win. Mac OS X (currently. X server on Mac OS, but a 'native' port is underway), and. As with Wx, the Perl bindings follow the C API closely. C documentation to. Win. 32: :GUIThis provides access to most of the Win. GUI widgets from Perl. The Perl. interface doesn't really follow the C interface: it's been made more. Perlish, and the documentation is pretty good. More advanced stuff may. C Win. 32 APIs, or reference to MSDN. Camel. Bones. Camel. Bones ( http: //camelbones. Perl interface to. Mac OS X's Cocoa GUI toolkit, and as such can be used to produce native. GUIs on Mac OS X. It's not on CPAN, as it requires frameworks that. CPAN. pm doesn't know how to install, but installation is via the. OSX package installer. The Perl API is, again, very close to. Obj. C API it's wrapping, and the documentation just tells you how to. Qt. There is a Perl interface to Troll. Tech's Qt toolkit, but it does not. Athena. Sx is an interface to the Athena widget set which comes with X, but. How can I make my Perl program run faster? The best way to do this is to come up with a better algorithm. This. can often make a dramatic difference. Jon Bentley's book. Programming Pearls (that's not a misspelling!) has some good tips. Advice on benchmarking boils down to: benchmark. You will probably want to. See the. Auto. Split and Auto. Loader modules in the standard distribution for. Or you could locate the bottleneck and think about writing just. C, the way we used to take bottlenecks in C code and. Similar to rewriting in C, modules that have. C (for instance, the PDL module. CPAN). If you're currently linking your perl executable to a shared. This will make a. Perl programs (and programmers) may. See the INSTALL file in the source distribution. The undump program was an ancient attempt to speed up Perl program by. This is no longer a viable. How can I make my Perl program take less memory? When it comes to time- space tradeoffs, Perl nearly always prefers to. Scalars in Perl use more memory than. C, arrays take more than that, and hashes use even more. While. there's still a lot to be done, recent releases have been addressing. For example, as of 5. In some cases, using substr() or vec() to simulate arrays can be. For example, an array of a thousand booleans will. The standard. Tie: :Substr. Hash module can also help for certain types of data. If you're working with specialist data structures. C may use. less memory than equivalent Perl modules. Another thing to try is learning whether your Perl was compiled with. Perl's builtin malloc. Whichever one it. You can find out whether you are using perl's malloc by. V: usemymalloc. Of course, the best way to save memory is to not do anything to waste. Good programming practices can go a long way. Don't slurp! Don't read an entire file into memory if you can process it line. Or more concretely, use a loop like this: ## Good Idea#while(my$line = < $file. For large files, it's better. For one thing, it's. It also avoids creating a copy of all the contents. This. requires some judgement, however, because any changes will be propagated. If you really want to mangle (er, modify) a. Tie large variables to disk.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2016
Categories |