[9870] in Perl-Users-Digest
Perl-Users Digest, Issue: 3463 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Aug 17 11:07:20 1998
Date: Mon, 17 Aug 98 08:00:23 -0700
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Mon, 17 Aug 1998 Volume: 8 Number: 3463
Today's topics:
Back on topic [was Re: Noise] <sneaker@sneex.fccj.org>
Re: File updating question <jdporter@min.net>
Re: Help with require (Bill Mezian)
Re: here's an implementation of diff in perl (Greg Bacon)
Re: here's an implementation of diff in perl <jdporter@min.net>
Re: How can I place STDIN in my script? huntersean@hotmail.com
Re: Link to a CGI script in a CGI script (Bill Mezian)
New posters to comp.lang.perl.misc <gbacon@cs.uah.edu>
Problems with Perl 5.005 under Linux <a0045@rondy.rrz.Uni-Koeln.DE>
Re: Q: How to read all the file name in a directory <grant.griffin@nospam.com>
Re: Q: How to read all the file name in a directory (I R A Aggie)
re: Recommend a good editor <simon@new-mediacom.com>
Re: Recommend a good editor <sneaker@sneex.fccj.org>
Re: Recommend a good editor b_redeker@hotmail.com
Statistics for comp.lang.perl.misc <gbacon@cs.uah.edu>
Re: unpack question <jdf@pobox.com>
Re: unpack question (Greg Bacon)
Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Mon, 17 Aug 1998 10:08:06 -0400
From: Bill 'Sneex' Jones <sneaker@sneex.fccj.org>
Subject: Back on topic [was Re: Noise]
Message-Id: <35D83946.805177CC@sneex.fccj.org>
Bill 'Sneex' Jones wrote:
>
> Yes. Let's add to the noise!
>
> I've always liked noiseyness :]
> http://webmaster.fccj.org/cgi/mail?webmaster
print(((255*3) >> (7 + 1 - 4)) & ~(~0 << 4));
Larry Rosler will appreciate this one :]
What is it? It's "How has it been since C was popular?!"
Just teasing,
-Sneex- :]
__________________________________________________________________
Bill Jones | FCCJ Webmaster | Life is a 'Do it yourself' thing...
http://webmaster.fccj.org/cgi/mail?webmaster
------------------------------
Date: Mon, 17 Aug 1998 10:34:36 -0400
From: John Porter <jdporter@min.net>
Subject: Re: File updating question
Message-Id: <35D83F7C.6DA7@min.net>
Mike Stok wrote:
> In article <35D4B076.3EE3@min.net>, John Porter <jdporter@min.net> wrote:
> >C *is* assembly language, with a sweeter syntax.
>
> How bizarre. My C went from x86 to 68k to T414 quite happily, but my x86
> assembler didn't seem to work that well on a T414.
Whatever. Just because it's portable doesn't mean it isn't assembly
language (and of course I use that term loosely).
My point is that C maps to machine code directly, just like assembly
(but less verbosely, obviously).
--
John Porter
------------------------------
Date: Mon, 17 Aug 1998 14:38:43 GMT
From: bill@sky-comm.net (Bill Mezian)
Subject: Re: Help with require
Message-Id: <35d83f68.268280134@sky2.sky-comm.net>
On Sat, 15 Aug 1998 11:08:46 GMT, romei@stampfair.com (Russ Romei)
wrote:
>Hi,
>
>does anyone know how (if you can) require a file on another server?
>
>ie
>
>require "http://www.foobar.com/perlfile.cgi"
Unless I am mistaken, require needs a path, not a URL
PATH= C:/myserver/mysite/mycgi/mylib
URL= HTTP://www.you_can't_assign_a_drive_and_directory_to_this.com
If I am, someone please correct me.
Bill
>
>I get a file not found error
>
>Is there any way around this?
>
>Thanks
>
>The StampFair ONLINE Auction. Auctions ending daily.
>Over 500 lots with images. http://www.StampFair.com
------------------------------
Date: 17 Aug 1998 14:19:47 GMT
From: gbacon@cs.uah.edu (Greg Bacon)
Subject: Re: here's an implementation of diff in perl
Message-Id: <6r9e63$jhd$4@info.uah.edu>
In article <slrn6tfct7.nka.ljz@sunspot.tiac.net>,
ljz@asfast.com (Lloyd Zusman) writes:
: There are lots of ways that two lines can differ, but only one way
: that they can be identical. Given the possible set of characters that
: could fill each of the N positions of the lines, there is a very high
: probability that any two arbitrary lines will not match, and there is
: also a very good chance that this non-matchingness will be detected
: after a small number characters of the two lines have been compared.
This is irrelevant. Saying that an algorithm's time complexity is
O(N/2) is a fairly good indication that you don't understand the
notation or the concept. Here's the definition that Baase gives in
the second edition of _Computer Algorithms: Introduction to Design
and Analysis_:
Let f:N->R*. O(f) is the set of functions g:N->R* such that for
some c which is a member of R+ and some n0 which is a member of N,
g(n) <= cf(n) for all n >= n0.
(R+ is the set of positive real numbers and R* is the set of positive
real numbers and zero.) What all that boils down to is O(N) is the
set of all linear and sublinear functions, i.e. those functions that
don't grow faster than a linear function. It's important to remember
that big oh notation hides constants, so an O(N**2) algorithm may run
faster on certain (usually small) datasets than an O(N) algorithm. The
call for empirical evidence is usually appropriate, even in the face of
time complexity analysis (but one must be careful in the datasets one
uses).
Greg
--
Must one first batter their ears, that they may learn to hear with
their eyes? Must one clatter like kettledrums and penitential
preachers? Or do they only believe the stammerer?
-- Nietzsche
------------------------------
Date: Mon, 17 Aug 1998 10:22:45 -0400
From: John Porter <jdporter@min.net>
Subject: Re: here's an implementation of diff in perl
Message-Id: <35D83CB5.49BD@min.net>
Abigail wrote:
>
> ABCDEFG
> BCDEFG
>
> Only for k = 1 will it report anything other than "all lines differ".
I'm not sure about that.
If you're going to compare "halves" of each file, it would not make
sense to compare unequal sized chunks from each file. Given
ABCDEFGH
CDEFGH
Then you should divide and compare chunks of size either like
ABCD EFGH
CDEF EFGH
where chunk size is half the larger file, so an overlapping part
of the smaller is seen twice; or
ABC FGH
CDE FGH
where chunk size is half the smaller file, so a part in the middle
of the larger file is not seen (this time).
Either way, you get one chunk comparing different, and one chunk
comparing same. You drop the chunk comparing same from both files,
and reiterate.
--
John Porter
------------------------------
Date: Mon, 17 Aug 1998 13:48:49 GMT
From: huntersean@hotmail.com
Subject: Re: How can I place STDIN in my script?
Message-Id: <6r9cc1$gh1$1@nnrp1.dejanews.com>
In article <6r7tl4$scs$1@nnrp1.dejanews.com>,
drsean1@my-dejanews.com wrote:
> Hi everyone, I have a script where I want to take <STDIN> input and place it
> as a part of my script. Here it is:
>
> $variable = "Hello";
> $line = <STDIN>;
> print ("$line world");
>
> The input I want to send to STDIN is:
> $variable
>
> But when I run this, it prints out "$variable" literarly. I want the output
> to be "Hello world" and not "$variable world" Can someone please help me?
> Thank you so very much! ThanX!!
You need/want a "symbolic reference". This is where a variable containing a
string is interpreted as the name of another variable. You need something like
this:
$variable = "Hello";
$line = <STDIN>;
chomp $line;
print "$$line world\n";
When James Q. Public types in "variable" (without the $ before), this will
print out "Hello world". You need the chomp statement to get rid of the
newline char at the end of $line. If you want someone to enter "$variable",
you'll need to split it off first before dereferencing the variable.
Symbolic references are a powerful, but slightly dangerous idiom, which is why
"use strict" disallows them.
Good Luck!
Sean Hunter
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Mon, 17 Aug 1998 14:33:02 GMT
From: bill@sky-comm.net (Bill Mezian)
Subject: Re: Link to a CGI script in a CGI script
Message-Id: <35d83be6.267381888@sky2.sky-comm.net>
On Sat, 15 Aug 1998 16:21:55 +0200, Knarf <knarf@dvd-dream.dyn.ml.org>
wrote:
>Hi, this is my first time posting here, i'm french and spent a lot of
>time reading this newsgroup.
>
>I'm trying to write a script that produces links to different parts of a
>
>database in an HTML document. CGI.pm allows me to get params from a
>search form i've already made. Thus, i can read complex parameter values
>
>including spaces, without "unwebify" my form results.
>
>But how can i make a script react to an "unwebified" parameter ???
>
>example:
>
>I can read the output a a texfield called "thing_value" by doing this:
>
>my $thing = param("thing_value");
>chomp ($thing);
# Set the input to the query
# string if the method is get
if ($ENV{'REQUEST_METHOD'} eq ('GET')
{
$input = $ENV{'QUERY_STRING'};
}
# Set the input to STDIN
# if the method is post
elsif ($ENV{'REQUEST_METHOD'} eq ('POST')
{
read(STDIN, $input);
}
else
{
some error here
}
then split on & and push the values into an array, split the array on
= to get your name=value pairs with none of the + or hex values
removed.
Bill
>
>So if i typed 'foo foo foo' into my textfield, now $thing value is "foo
>foo foo" (i hope so :-))
>But now if i want to link to another script that can react to "foo foo
>foo":
>
>print "<a
>href=$my_url/cgi-bin/another.cgi?react_param=$my_foo_foo>$thing</a>\n";
>
>How can i set up $my_foo_foo? Is there any function (already included)
>that could take a param from an HTML form without "unwebifying" it. This
>
>could allow me to store it before "unwebification" and use it later in
>another.cgi.
>
>Any help, FAQ, url swould be great !!
>Sorry if the question is lame. :-)
>
>Knarf
>
------------------------------
Date: 17 Aug 1998 14:54:31 GMT
From: Greg Bacon <gbacon@cs.uah.edu>
Subject: New posters to comp.lang.perl.misc
Message-Id: <6r9g77$jhd$6@info.uah.edu>
Following is a summary of articles from new posters spanning a 7 day
period, beginning at 10 Aug 1998 13:52:44 GMT and ending at
17 Aug 1998 06:05:56 GMT.
Notes
=====
- A line in the body of a post is considered to be original if it
does *not* match the regular expression /^\s{0,3}(?:>|:|\S+>|\+\+)/.
- All text after the last cut line (/^-- $/) in the body is
considered to be the author's signature.
- The scanner prefers the Reply-To: header over the From: header
in determining the "real" e-mail address and name.
- Original Content Rating (OCR) is the ratio of the original content
volume to the total body volume.
- Find the News-Scan distribution on the CPAN!
<URL:http://www.perl.com/CPAN/modules/by-module/News/>
- Please send all comments to Greg Bacon <gbacon@cs.uah.edu>.
- Copyright (c) 1998 Greg Bacon. All Rights Reserved.
Verbatim copying and redistribution is permitted without royalty;
alteration is not permitted. Redistribution and/or use for any
commercial purpose is prohibited.
Totals
======
Posters: 280 (49.8% of all posters)
Articles: 402 (26.3% of all articles)
Volume generated: 620.9 kb (24.3% of total volume)
- headers: 268.5 kb (5,606 lines)
- bodies: 344.0 kb (11,281 lines)
- original: 256.8 kb (8,874 lines)
- signatures: 8.0 kb (174 lines)
Original Content Rating: 0.746
Averages
========
Posts per poster: 1.4
median: 1.0 post
mode: 1 post - 206 posters
s: 1.1 posts
Message size: 1581.6 bytes
- header: 684.0 bytes (13.9 lines)
- body: 876.3 bytes (28.1 lines)
- original: 654.0 bytes (22.1 lines)
- signature: 20.4 bytes (0.4 lines)
Top 10 Posters by Number of Posts
=================================
(kb) (kb) (kb) (kb)
Posts Volume ( hdr/ body/ orig) Address
----- -------------------------- -------
7 7.8 ( 4.2/ 3.6/ 2.5) schutzmd@SPAMFREEjmu.edu (Mike)
7 9.5 ( 5.2/ 4.3/ 3.9) oliver.REMOVE.cook@bigfoot.DELETE.com
7 12.5 ( 6.1/ 6.4/ 4.7) Ketan Patel <kpatel@mathworks.com>
5 8.0 ( 4.2/ 3.7/ 2.2) Grant Griffin <grant.griffin@nospam.com>
4 6.2 ( 3.3/ 2.9/ 1.8) Ketan Patel <ketanp@NOSPAMxwebdesign.com>
4 16.7 ( 2.7/ 14.0/ 3.4) dzuy@my-dejanews.com
4 10.3 ( 2.9/ 7.4/ 2.8) Tim Haynes <thaynes@openlinksw.co.uk>
4 7.3 ( 2.7/ 4.4/ 3.4) ez074520@dilbert.ucdavis.edu (Tomoyuki Tanaka)
4 6.0 ( 3.0/ 3.0/ 0.9) Ken McNamara <conmara@tcon.net>
4 5.6 ( 2.8/ 2.8/ 1.1) Chad Cunningham <ccunning@socrates.mps.ohio-state.edu>
These posters accounted for 3.3% of all articles.
Top 10 Posters by Volume
========================
(kb) (kb) (kb) (kb)
Volume ( hdr/ body/ orig) Posts Address
-------------------------- ----- -------
16.7 ( 2.7/ 14.0/ 3.4) 4 dzuy@my-dejanews.com
12.5 ( 6.1/ 6.4/ 4.7) 7 Ketan Patel <kpatel@mathworks.com>
10.3 ( 2.9/ 7.4/ 2.8) 4 Tim Haynes <thaynes@openlinksw.co.uk>
10.2 ( 1.9/ 8.3/ 4.7) 3 "Andy Glew" <glew@hf.intel.com>
9.5 ( 5.2/ 4.3/ 3.9) 7 oliver.REMOVE.cook@bigfoot.DELETE.com
9.2 ( 1.4/ 7.8/ 7.4) 2 Debbie Whitten <usenet-replies@rocketmail.com>
8.8 ( 3.6/ 5.2/ 0.9) 4 "Matthew J. Forder" <mjforder@earthling.net>
8.2 ( 1.8/ 6.4/ 3.3) 3 bill@sky-comm.net (Bill Mezian)
8.0 ( 4.2/ 3.7/ 2.2) 5 Grant Griffin <grant.griffin@nospam.com>
7.8 ( 4.2/ 3.6/ 2.5) 7 schutzmd@SPAMFREEjmu.edu (Mike)
These posters accounted for 4.0% of the total volume.
Top 10 Posters by OCR (minimum of three posts)
==============================================
(kb) (kb)
OCR orig / body Posts Address
----- -------------- ----- -------
1.000 ( 0.4 / 0.4) 3 Peter Richmond <peter@richmd.demon.co.uk>
0.968 ( 4.1 / 4.3) 3 rosso@rsn.hp.com
0.910 ( 0.9 / 1.0) 3 "Lee Davies" <lee.davies@NOSPAMsaaconsultants.com>
0.903 ( 3.9 / 4.3) 7 oliver.REMOVE.cook@bigfoot.DELETE.com
0.853 ( 1.3 / 1.5) 3 Robin Houston <robin.houston@guardian.co.uk>
0.836 ( 1.7 / 2.1) 3 "Daniel Adams" <dan@fearsome.net>
0.820 ( 3.2 / 3.9) 3 kermit@sesamestreet.com (Kermit the frog)
0.779 ( 2.1 / 2.6) 3 support@rosenet.net
0.763 ( 3.4 / 4.4) 4 ez074520@dilbert.ucdavis.edu (Tomoyuki Tanaka)
0.736 ( 4.7 / 6.4) 7 Ketan Patel <kpatel@mathworks.com>
Bottom 10 Posters by OCR (minimum of three posts)
=================================================
(kb) (kb)
OCR orig / body Posts Address
----- -------------- ----- -------
0.599 ( 2.2 / 3.7) 5 Grant Griffin <grant.griffin@nospam.com>
0.569 ( 4.7 / 8.3) 3 "Andy Glew" <glew@hf.intel.com>
0.528 ( 1.3 / 2.5) 3 MCKAYD@aplbt1.agw.bt.co.uk (Dermot McKay)
0.523 ( 3.3 / 6.4) 3 bill@sky-comm.net (Bill Mezian)
0.392 ( 1.1 / 2.8) 4 Chad Cunningham <ccunning@socrates.mps.ohio-state.edu>
0.380 ( 2.8 / 7.4) 4 Tim Haynes <thaynes@openlinksw.co.uk>
0.356 ( 1.2 / 3.3) 3 paydirt@freemail.yeehaa.com
0.300 ( 0.9 / 3.0) 4 Ken McNamara <conmara@tcon.net>
0.245 ( 3.4 / 14.0) 4 dzuy@my-dejanews.com
0.179 ( 0.9 / 5.2) 4 "Matthew J. Forder" <mjforder@earthling.net>
27 posters (9%) had at least three posts.
Top 10 Crossposters
===================
Articles Address
-------- -------
6 ez074520@dilbert.ucdavis.edu (Tomoyuki Tanaka)
3 "Andy Glew" <glew@hf.intel.com>
3 Angela Day <webmanager.NOSPAM@municipalinfocentre.com>
3 Tim Haynes <thaynes@openlinksw.co.uk>
3 roverjohnny <atrixojj@roverjohnny.demon.co.uk>
3 bcroose@mail.bogo.co.uk (Harm)
3 Harry Andree <Harry_Andree@smtplink.mssm.edu>
2 smaring@gte-es.com
2 aja@DevDaily.com
2 Steven Lai <o10382@email.mot.com>
------------------------------
Date: 17 Aug 1998 16:35:25 +0200
From: Jochen Roderburg <a0045@rondy.rrz.Uni-Koeln.DE>
Subject: Problems with Perl 5.005 under Linux
Message-Id: <riaf53d6c2.fsf@rondy.rrz.Uni-Koeln.DE>
I have some problems to build a fully working version of the new Perl 5.005
series under Linux. It compiles and links fine, but all tests fail in which
a dynamic loaded module is envolved.
I get a lot of error messages of the type
./perl: can't resolve symbol 'PL_xxxxxx'
eg. PL_sv_undef, PL_markstack_ptr, PL_na, PL_sv_yes, PL_stack_base, PL_stack_sp
appear in every case.
When I do a 'nm xxx.so' on one of the modules, these symbols are listed with
a U, I guess this means 'undefined'. A 'nm perl' shows them with a B,
whatever that means (Btw, does anybody know where I can find a documentation
of this nm-output?). On the other hand, this looks similar in a working
5.004 version, only difference, the symbols there have a prefix Perl_
instead of PL_.
I have looked in dejanews and found only one question which was similar, but
no answer. So I think the problem does not occur in most Linux systems, the
reason must be something specific in my environment.
Components here are:
Kernel 2.0.35, libc 5.4.46, ld.so/libdl 1.9.9
gcc 2.7.2.3 or 2.8.1, binutils 2.9.1.0.7
Output from Perl's myconfig:
Summary of my perl5 (5.0 patchlevel 5 subversion 51) configuration:
Platform:
osname=linux, osvers=2.0.35, archname=i686-linux
uname='linux roix 2.0.35 #5 sat aug 8 16:09:57 met dst 1998 i686 unknown'
hint=previous, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
Compiler:
cc='cc', optimize='-O2', gccversion=2.7.2.3
cppflags='-Dbool=char -DHAS_BOOL'
ccflags ='-Dbool=char -DHAS_BOOL'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags =''
libpth=/lib /usr/lib
libs=-lgdbm -ldb -ldl -lm -lc
libc=, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-fpic', lddlflags='-shared'
Regards,
Jochen Roderburg
Regional Computing Center
University of Cologne
Robert-Koch-Str. 10 Tel.: +49-221/470-4564
D-50931 Koeln E-Mail: Roderburg@rrz.Uni-Koeln.DE
Germany
------------------------------
Date: Mon, 17 Aug 1998 09:18:44 -0500
From: Grant Griffin <grant.griffin@nospam.com>
Subject: Re: Q: How to read all the file name in a directory
Message-Id: <35D83BC4.3A28757E@nospam.com>
I R A Aggie wrote:
> 2. the previous poster claims he will begin to scorn TomC with silence
>
> Ergo, the previous poster is being rude, and is engaging in the same
> behaviour that he decries.
James,
You lost me on this one. How is it rude to people not to respond to their
messages on usenet? To not respond in person: yes, to not respond over e-mail:
probably, but on usenet? No. For all they know, maybe I'm not responding
because I'm on vacation. As a matter of fact, an autoresponse from Tom C. after
my last cc: to him says that he is engaging in precisely this form of rudeness
right now.
If you don't hear back from me in the future, it's probably because I'm on
vacation.
=g2
------------------------------
Date: Mon, 17 Aug 1998 10:43:58 -0500
From: fl_aggie@thepentagon.com (I R A Aggie)
Subject: Re: Q: How to read all the file name in a directory
Message-Id: <fl_aggie-1708981043580001@aggie.coaps.fsu.edu>
In article <6r8m3a$rkj@mozo.cc.purdue.edu>, gebis@fee.ecn.purdue.edu
(Michael J Gebis) wrote:
+ fl_aggie@thepentagon.com (I R A Aggie) writes:
+ }So, Lloyd, how's the Perl Helpdesk going?
+
+ There are choices other than "flame" and "helpdesk."
How are the other choices coming, then? Hint: if you think your rhetoric
will get TomC to change, I suspect you're wasting keystrokes that could
be better spent advancing your other choices.
James
------------------------------
Date: Mon, 17 Aug 1998 14:53:27 +0100
From: Simon Wistow <simon@new-mediacom.com>
Subject: re: Recommend a good editor
Message-Id: <645CAC0140CED111AF1500805FEDDB8A973A@ns.new-mediacom.co.uk>
I use Ultraedit (http://www.ultraedit.com) for everything. It has
- syntax highlighting through an editable config file with loads of
languages already supported
- hex editing, column & blokc mode editing
- save as Dos/Mac/Unix
- 100,000 word, multi language spell checker
- save as FTP
- the best search/replace features I've seen (including RegExps)
ohh, loads of other stuff as well. Just go to the web site.
It also loads as fast if not faster as notepad. No waiting around for
Wordpad crap.
> -----Original Message-----
> From: aderoy@mnsi.net [SMTP:aderoy@mnsi.net]
> Posted At: Sunday, August 16, 1998 3:15 PM
> Posted To: misc
> Conversation: Recommend a good editor
> Subject: Re: Recommend a good editor
>
> In <6r2lf5$cga$1@nnrp1.dejanews.com>, on 08/15/98
> at 12:41 AM, dturley@pobox.com said:
>
> >In article <6r1qlj$90f@sjx-ixn1.ix.netcom.com>,
> > "Steve Bohler" <skbohler@sprynet.com> wrote:
> >> I've searched through previous posts, but am not finding a
> recommendation
> >> for an easy-to-use Perl editor that runs on Windows.
>
> Try vedit at www.vedit.com they have a trial available. Works under
> DOS
> and/or Windows. Small, fast and configurable with syntax highlighting
>
> -----------------------------------------------------------
> aderoy@mnsi.net
> -----------------------------------------------------------
------------------------------
Date: Mon, 17 Aug 1998 10:09:59 -0400
From: Bill 'Sneex' Jones <sneaker@sneex.fccj.org>
Subject: Re: Recommend a good editor
Message-Id: <35D839B7.4132BD80@sneex.fccj.org>
news4jim@my-dejanews.com wrote:
>
> In article <6r30n6$ep0$1@msunews.cl.msu.edu>,
> Dan Nguyen <nguyend7@msu.edu> wrote:
> > In comp.lang.perl.misc Steve Bohler <skbohler@sprynet.com> wrote:
> > : I've searched through previous posts, but am not finding a recommendation
> > : for an easy-to-use Perl editor that runs on Windows. I've used emacs
> > : before, but was wondering if there was something better.
> >
> > What could be better than emacs?
>
> I swear by Textpad:
>
> www.textpad.com
>
> --
BBEdit :]
-Sneex-
__________________________________________________________________
Bill Jones | FCCJ Webmaster | Life is a 'Do it yourself' thing...
http://webmaster.fccj.org/cgi/mail?webmaster
------------------------------
Date: Mon, 17 Aug 1998 14:32:54 GMT
From: b_redeker@hotmail.com
Subject: Re: Recommend a good editor
Message-Id: <6r9eum$jkd$1@nnrp1.dejanews.com>
In article <6r9bec$fem$1@nnrp1.dejanews.com>,
news4jim@my-dejanews.com wrote:
> In article <6r30n6$ep0$1@msunews.cl.msu.edu>,
> Dan Nguyen <nguyend7@msu.edu> wrote:
> > In comp.lang.perl.misc Steve Bohler <skbohler@sprynet.com> wrote:
> > : I've searched through previous posts, but am not finding a recommendation
> > : for an easy-to-use Perl editor that runs on Windows. I've used emacs
> > : before, but was wondering if there was something better.
> >
> > What could be better than emacs?
anything?
>
> I swear by Textpad:
>
> www.textpad.com
>
> --
i currently use UltraEdit32
http://www.ultraedit.com/products/index.html
--
Boudewijn
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: 17 Aug 1998 14:54:47 GMT
From: Greg Bacon <gbacon@cs.uah.edu>
Subject: Statistics for comp.lang.perl.misc
Message-Id: <6r9g7n$jhd$7@info.uah.edu>
Following is a summary of articles spanning a 7 day period,
beginning at 10 Aug 1998 13:52:44 GMT and ending at
17 Aug 1998 06:05:56 GMT.
Notes
=====
- A line in the body of a post is considered to be original if it
does *not* match the regular expression /^\s{0,3}(?:>|:|\S+>|\+\+)/.
- All text after the last cut line (/^-- $/) in the body is
considered to be the author's signature.
- The scanner prefers the Reply-To: header over the From: header
in determining the "real" e-mail address and name.
- Original Content Rating (OCR) is the ratio of the original content
volume to the total body volume.
- Find the News-Scan distribution on the CPAN!
<URL:http://www.perl.com/CPAN/modules/by-module/News/>
- Please send all comments to Greg Bacon <gbacon@cs.uah.edu>.
- Copyright (c) 1998 Greg Bacon. All Rights Reserved.
Verbatim copying and redistribution is permitted without royalty;
alteration is not permitted. Redistribution and/or use for any
commercial purpose is prohibited.
Excluded Posters
================
perlfaq-suggestions\@mox\.perl\.com
Totals
======
Posters: 562
Articles: 1529 (631 with cutlined signatures)
Threads: 462
Volume generated: 2560.3 kb
- headers: 1083.6 kb (21,644 lines)
- bodies: 1381.9 kb (42,151 lines)
- original: 960.8 kb (31,227 lines)
- signatures: 93.4 kb (1,956 lines)
Original Content Rating: 0.695
Averages
========
Posts per poster: 2.7
median: 1.0 post
mode: 1 post - 356 posters
s: 6.6 posts
Posts per thread: 3.3
median: 2.0 posts
mode: 1 post - 142 threads
s: 3.9 posts
Message size: 1714.7 bytes
- header: 725.7 bytes (14.2 lines)
- body: 925.5 bytes (27.6 lines)
- original: 643.5 bytes (20.4 lines)
- signature: 62.6 bytes (1.3 lines)
Top 10 Posters by Number of Posts
=================================
(kb) (kb) (kb) (kb)
Posts Volume ( hdr/ body/ orig) Address
----- -------------------------- -------
104 146.3 ( 81.9/ 52.4/ 33.2) Tom Phoenix <rootbeer@teleport.com>
48 92.5 ( 31.1/ 61.3/ 41.0) cberry@cinenet.net (Craig Berry)
46 69.2 ( 40.5/ 28.1/ 17.9) jdporter@min.net
40 74.8 ( 33.7/ 34.3/ 16.6) abigail@fnx.com
39 125.8 ( 31.5/ 89.8/ 83.9) tchrist@mox.perl.com (Tom Christiansen)
29 54.1 ( 19.3/ 31.9/ 18.6) lr@hpl.hp.com (Larry Rosler)
27 31.9 ( 15.5/ 16.5/ 11.8) mjd@op.net (Mark-Jason Dominus)
24 39.3 ( 17.3/ 16.0/ 9.5) comdog@computerdog.com (brian d foy)
20 24.7 ( 13.0/ 10.2/ 6.9) Jonathan Feinberg <jdf@pobox.com>
19 30.2 ( 13.6/ 16.6/ 9.0) ilya@math.ohio-state.edu (Ilya Zakharevich)
These posters accounted for 25.9% of all articles.
Top 10 Posters by Volume
========================
(kb) (kb) (kb) (kb)
Volume ( hdr/ body/ orig) Posts Address
-------------------------- ----- -------
146.3 ( 81.9/ 52.4/ 33.2) 104 Tom Phoenix <rootbeer@teleport.com>
125.8 ( 31.5/ 89.8/ 83.9) 39 tchrist@mox.perl.com (Tom Christiansen)
92.5 ( 31.1/ 61.3/ 41.0) 48 cberry@cinenet.net (Craig Berry)
74.8 ( 33.7/ 34.3/ 16.6) 40 abigail@fnx.com
69.2 ( 40.5/ 28.1/ 17.9) 46 jdporter@min.net
58.0 ( 15.6/ 42.5/ 33.4) 15 ptimmins@netserv.unmc.edu (Patrick Timmins)
54.1 ( 19.3/ 31.9/ 18.6) 29 lr@hpl.hp.com (Larry Rosler)
51.8 ( 11.9/ 39.9/ 24.8) 17 "Ha" <REPLY_TO_lastronin@earthlink.net>
47.4 ( 17.4/ 25.4/ 13.6) 18 rjk@coos.dartmouth.edu (Ronald J Kimball)
39.3 ( 17.3/ 16.0/ 9.5) 24 comdog@computerdog.com (brian d foy)
These posters accounted for 29.7% of the total volume.
Top 10 Posters by OCR (minimum of five posts)
==============================================
(kb) (kb)
OCR orig / body Posts Address
----- -------------- ----- -------
1.000 ( 10.1 / 10.1) 15 fl_aggie@thepentagon.com (I R A Aggie)
1.000 ( 4.6 / 4.6) 9 gebis@fee.ecn.purdue.edu (Michael J Gebis)
1.000 ( 1.7 / 1.7) 6 syarbrou@ais.net (Steve .)
0.934 ( 83.9 / 89.8) 39 tchrist@mox.perl.com (Tom Christiansen)
0.913 ( 19.8 / 21.6) 10 Greg Bacon <gbacon@cs.uah.edu>
0.903 ( 3.9 / 4.3) 7 oliver.REMOVE.cook@bigfoot.DELETE.com
0.827 ( 6.5 / 7.9) 7 am@am.westblaak.spirit.nl (Andre Merzky)
0.814 ( 8.4 / 10.4) 12 nvp@shore.net (Nathan V. Patwardhan)
0.806 ( 7.6 / 9.5) 11 mjd@plover.com (Mark-Jason Dominus)
0.788 ( 33.4 / 42.5) 15 ptimmins@netserv.unmc.edu (Patrick Timmins)
Bottom 10 Posters by OCR (minimum of five posts)
=================================================
(kb) (kb)
OCR orig / body Posts Address
----- -------------- ----- -------
0.490 ( 2.6 / 5.3) 8 "Jim Woodgate" <jdw@dev.tivoli.com>
0.490 ( 2.6 / 5.3) 8 mjtg@cus.cam.ac.uk (M.J.T. Guy)
0.485 ( 16.6 / 34.3) 40 abigail@fnx.com
0.446 ( 4.3 / 9.7) 7 huntersean@hotmail.com
0.436 ( 2.2 / 5.0) 9 Randal Schwartz <merlyn@stonehenge.com>
0.397 ( 1.3 / 3.3) 7 alecler@cam.org (Andre L.)
0.387 ( 1.6 / 4.1) 5 Uri Guttman <uri@sysarch.com>
0.385 ( 1.7 / 4.5) 5 Martin Gregory <mgregory@asc.sps.mot.com>
0.348 ( 1.3 / 3.7) 5 ced@bcstec.ca.boeing.com (Charles DeRykus)
0.345 ( 1.9 / 5.5) 6 maurice@hevanet.com (Maurice Aubrey)
53 posters (9%) had at least five posts.
Top 10 Threads by Number of Posts
=================================
Posts Subject
----- -------
41 What is the purpose of Perl
34 File updating question
30 Q: How to read all the file name in a directory
29 X-file (?=...), case postponed.
24 dates in excess of 2037 (A Problem???)
22 here's an implementation of diff in perl
16 Newbie Question About 'for'
15 Self-printing code
15 perlfaq - frequently asked questions about Perl (part 0 of 9)
14 A Regexp problem
These threads accounted for 15.7% of all articles.
Top 10 Threads by Volume
========================
(kb) (kb) (kb) (kb)
Volume ( hdr/ body/ orig) Posts Subject
-------------------------- ----- -------
99.5 ( 37.1/ 60.2/ 35.9) 29 X-file (?=...), case postponed.
76.7 ( 28.7/ 46.5/ 26.8) 34 File updating question
63.4 ( 34.9/ 24.4/ 15.4) 41 What is the purpose of Perl
60.2 ( 24.4/ 34.2/ 26.6) 30 Q: How to read all the file name in a directory
46.5 ( 16.3/ 28.1/ 16.0) 24 dates in excess of 2037 (A Problem???)
43.0 ( 16.0/ 25.5/ 16.3) 22 here's an implementation of diff in perl
36.9 ( 8.3/ 28.1/ 24.8) 11 use strict problem with indirect file variables ?
30.8 ( 5.5/ 24.4/ 23.2) 7 IMPORTANT: Proper Netiquette
28.5 ( 6.3/ 21.8/ 11.6) 9 long story - fork & multiprocessing problem
27.6 ( 11.4/ 15.2/ 9.7) 16 Newbie Question About 'for'
These threads accounted for 20.0% of the total volume.
Top 10 Threads by OCR (minimum of five posts)
==============================================
(kb) (kb)
OCR orig / body Posts Subject
----- -------------- ----- -------
0.951 ( 23.2/ 24.4) 7 IMPORTANT: Proper Netiquette
0.927 ( 8.9/ 9.6) 5 variable interpolation
0.884 ( 24.8/ 28.1) 11 use strict problem with indirect file variables ?
0.871 ( 11.4/ 13.1) 7 search text in specific columns
0.860 ( 2.1/ 2.4) 7 freeware documentation
0.855 ( 2.7/ 3.2) 7 line of text.
0.845 ( 4.2/ 5.0) 7 How to untaint a directory path?
0.834 ( 5.0/ 6.0) 5 Using variable in TR
0.815 ( 7.6/ 9.3) 10 Opening a file as "+>>file"
0.810 ( 2.6/ 3.2) 6 File::Copy
Bottom 10 Threads by OCR (minimum of five posts)
=================================================
(kb) (kb)
OCR orig / body Posts Subject
----- -------------- ----- -------
0.505 ( 2.5 / 4.9) 5 Analyzing HTTP traffic?
0.504 ( 2.8 / 5.5) 10 Perl's equiv of "cc -DDEBUG" ?
0.504 ( 2.6 / 5.1) 8 Test Results - Asking a question
0.501 ( 2.6 / 5.2) 7 how to
0.477 ( 2.4 / 5.0) 11 checking if files exist
0.467 ( 1.6 / 3.5) 7 Q: Problems with <system> command
0.451 ( 2.0 / 4.3) 5 Help with script (If/Elsif/else)
0.436 ( 3.6 / 8.2) 5 Access, ODBC and Linux
0.425 ( 2.0 / 4.7) 9 re first language
0.422 ( 2.1 / 4.9) 6 PERL and HTACCESS
93 threads (20%) had at least five posts.
Top 10 Targets for Crossposts
=============================
Articles Newsgroup
-------- ---------
33 comp.lang.perl.modules
31 comp.lang.perl.moderated
11 comp.lang.perl
9 comp.editors
9 alt.tanaka-tomoyuki
5 comp.sys.sgi.apps
5 microsoft.public.frontpage.client
4 misc.entrepreneurs
4 alt.usage.english
3 comp.software.international
Top 10 Crossposters
===================
Articles Address
-------- -------
9 ptimmins@netserv.unmc.edu (Patrick Timmins)
7 abigail@fnx.com
6 ez074520@dilbert.ucdavis.edu (Tomoyuki Tanaka)
5 root.noharvest.\@not_even\here.com
5 rjk@coos.dartmouth.edu (Ronald J Kimball)
4 tchrist@mox.perl.com (Tom Christiansen)
4 ilya@math.ohio-state.edu (Ilya Zakharevich)
4 comdog@computerdog.com (brian d foy)
3 Tim Haynes <thaynes@openlinksw.co.uk>
3 Tom Phoenix <rootbeer&pfaq*finding*@redcat.com>
------------------------------
Date: 17 Aug 1998 10:33:31 -0500
From: Jonathan Feinberg <jdf@pobox.com>
To: b_redeker@hotmail.com
Subject: Re: unpack question
Message-Id: <emuf1v3o.fsf@mailhost.panix.com>
b_redeker@hotmail.com writes:
> #My Data: aa1.2 bb1234567890 cc1 dd1.234
>#read lines
> while ($line=<IN>) {
> @stuff = unpack("A2A3", $line);
> print "$line -> @stuff\n"; }
>
> now this produces neat results, but who can explain to me what happens
> if I use unpack ("A2f3", $line);
That is not packed data; it's string representations of numbers.
Unless you know exactly how many characters long each of those values
will be, then unpack() is not what you want. You want something like
@stuff = ($line =~
/^\s*aa([\d.]+)\s*bb([\d.]+)\s*cc([\d.]+)\s*dd([\d.]+)/)
And now when you use $stuff[0] like a number, it will "be" the
floating-point number represented by 1.2 or whatever.
--
Jonathan Feinberg jdf@pobox.com Sunny Brooklyn, NY
http://pobox.com/~jdf/
------------------------------
Date: 17 Aug 1998 14:52:41 GMT
From: gbacon@cs.uah.edu (Greg Bacon)
Subject: Re: unpack question
Message-Id: <6r9g3p$jhd$5@info.uah.edu>
In article <6r9bdi$feg$1@nnrp1.dejanews.com>,
b_redeker@hotmail.com writes:
: #My Data: aa1.2 bb1234567890 cc1 dd1.234
: #read lines
: while ($line=<IN>) {
: @stuff = unpack("A2A3", $line);
: print "$line -> @stuff\n";
: }
:
: now this produces neat results, but who can explain to me what happens
: if I use unpack ("A2f3", $line);
: ^
: I get some floating point numbers which seem to have no relation with
: the data given. Anyone who knows what happens and why?
You have made a breakthrough, Grasshopper. Consider this C program:
#include <stdio.h>
union intfloat {
int i;
float f;
};
int
main(void)
{
union intfloat u;
u.i = 0x5065726c;
printf("As an int: %d\n", u.i);
printf("As a float: %f\n", u.f);
printf("As a string: %s\n", (char *) &(u.i));
return 0;
}
A computer doesn't know what kind of data is held within its memory;
someone has to tell it how to interpret the data. As the output of
the above program shows, the bitsequence 0x5065726c can represent
the integer 1348825708 or the real number 15397924864.000000 or the
string "Perl".
Hope this helps,
Greg
--
It's a miracle that curiosity survives formal education.
-- Albert Einstein
------------------------------
Date: 12 Jul 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Special: Digest Administrivia (Last modified: 12 Mar 98)
Message-Id: <null>
Administrivia:
Special notice: in a few days, the new group comp.lang.perl.moderated
should be formed. I would rather not support two different groups, and I
know of no other plans to create a digested moderated group. This leaves
me with two options: 1) keep on with this group 2) change to the
moderated one.
If you have opinions on this, send them to
perl-users-request@ruby.oce.orst.edu.
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V8 Issue 3463
**************************************