home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pmafire!news.dell.com!swrinde!mips!darwin.sura.net!jvnc.net!princeton!onion.princeton.edu!rjc
- From: rjc@onion.princeton.edu (Raymond Chen)
- Newsgroups: comp.lang.perl
- Subject: Perl and low-memory environments
- Message-ID: <1992Jul28.164057.14549@Princeton.EDU>
- Date: 28 Jul 92 16:40:57 GMT
- Sender: news@Princeton.EDU (USENET News System)
- Organization: Princeton University
- Lines: 18
- Nntp-Posting-Host: onion.princeton.edu
-
- Although perl was written for 32-bit virtual memory UNIX boxes,
- many of us use it on 16-bit low-memory machines like IBM PC's.
- (Beyond spec, I know, but hey.)
-
- I'm wondering if any of my MS-DOS brethren have any space-saving
- tips to share. I'm already using the following tricks:
-
- - Use the symbol table as an associative array.
- - Don't load subroutines until they're needed.
- - Discard subroutines when they're no longer needed.
-
- But that's still not enough. I'm thinking of moving all of main
- into subroutines so that I can discard bits and pieces of main as
- they are no longer needed.
-
- Has anyone had experience tuning code for low-memory machines?
- --
- for(split(//,"_rekcah_lrep_rehtona_tsuJ")){eval"sub $}$_{'$_'.&$};}";$}.=$_;}$_=&$}.",";y/_/ /;print;
-