[12073] in Perl-Users-Digest
Perl-Users Digest, Issue: 5673 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat May 15 13:07:27 1999
Date: Sat, 15 May 99 10:00:17 -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 Sat, 15 May 1999 Volume: 8 Number: 5673
Today's topics:
Anyone know what's wrong? (Austin Ming)
Re: Anyone know what's wrong? (Michel Dalle)
Can convert (CP1250, CP852, CP437)? <pkotala@logis.cz>
Chdir (cwd) of shell with perl Script <bwerkman@rbg.informatik.tu-darmstadt.de>
Re: Chdir (cwd) of shell with perl Script (Tad McClellan)
Re: CPAN-POD & pulling my hair OUT! HELP! do the doc's (M.J.T. Guy)
Re: Hash arrays (Tad McClellan)
Re: Hash arrays (Tad McClellan)
Re: Hlp! XSUBPP has a matter. (Arved Sandstrom)
How to program a shell '#!<program>' statement. <neil_rutherford@cableinet.co.uk>
Re: How to program a shell '#!<program>' statement. (Tad McClellan)
Re: man pages and FAQs: why posted? (Arved Sandstrom)
Modify this Penpal script for better use <factory@factory.co.kr>
Re: open, read,then print a file (Larry Rosler)
Re: Perl "constructors" <gellyfish@gellyfish.com>
Re: Perl "constructors" (Tad McClellan)
Re: Perl scripting software <gellyfish@gellyfish.com>
Re: PERLFUNC: hex - convert a string to a hexadecimal n (Larry Rosler)
question about STDOUT <zzhan@cs.nmsu.edu>
TROLL ALERT (Re: Perl "constructors") <gellyfish@gellyfish.com>
Re: TROLL ALERT (Re: Perl "constructors") <tchrist@mox.perl.com>
Re: TROLL ALERT (Re: Perl "constructors") (Arved Sandstrom)
Re: TROLL ALERT (Re: Perl "constructors") <dgris@moiraine.dimensional.com>
using emacs with perl for win32 <pallaire@together.net>
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 15 May 1999 14:58:26 GMT
From: austin95002887@yahoo.com (Austin Ming)
Subject: Anyone know what's wrong?
Message-Id: <7hk22i$sao$2@justice.csc.cuhk.edu.hk>
I can not use the following perl codes to open, read and print all the files
in a directory.
Anyone know what's wrong?
or any better method to do ?
#!/usr/bin/perl
print "Content-type: text/html\n\n";
$basedir = "/progra~1/sambar41/cgi-bin/";
@files = ('*.*');
chdir($basedir);
foreach $x (@files) {
open(FILE,"$x") || die "Couldn't open $x for reading.\n";
while(<FILE>){ print ; }
}
}
close(FILE);
------------------------------
Date: Sat, 15 May 1999 15:31:27 GMT
From: michel.dalle@usa.net (Michel Dalle)
Subject: Re: Anyone know what's wrong?
Message-Id: <7hk3ur$nfd$2@xenon.inbe.net>
In article <7hk22i$sao$2@justice.csc.cuhk.edu.hk>, austin95002887@yahoo.com (Austin Ming) wrote:
>I can not use the following perl codes to open, read and print all the files
>in a directory.
>
>Anyone know what's wrong?
>or any better method to do ?
See my reply in comp.infosystems.www.authoring.cgi
And stay there :-)
Michel.
------------------------------
Date: Sat, 15 May 1999 16:30:20 +0200
From: "Pavel Kotala" <pkotala@logis.cz>
Subject: Can convert (CP1250, CP852, CP437)?
Message-Id: <926778667.593269@gate.logis.cz>
Does anybody know about module or script for charset conversion between
CP1250, CP852, CP437?
Thank You
Pavel Kotala
------------------------------
Date: Sat, 15 May 1999 17:10:09 +0200
From: =?iso-8859-1?Q?Bj=F6rn?= <bwerkman@rbg.informatik.tu-darmstadt.de>
Subject: Chdir (cwd) of shell with perl Script
Message-Id: <373D8E51.5E63B335@rbg.informatik.tu-darmstadt.de>
Hi,
I'm trying to write a perl script, that I call from my csh with a
abreviation
for a deep nested directory as parameter, and after termination the csh
current
working dir should be the meant directory.
The problem with this simple task seems to be that changes done with
chdir or system "cd " are only temporary while the execution of my
script.
Is there a possibilty to impinge on the cwd of the shell that calls the
script using a perl command line option or something else?
Thanks a lot for your time spent answering my question
Bjoern
------------------------------
Date: Sat, 15 May 1999 07:39:53 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Chdir (cwd) of shell with perl Script
Message-Id: <9emjh7.a25.ln@magna.metronet.com>
=?iso-8859-1?Q?Bj=F6rn?= (bwerkman@rbg.informatik.tu-darmstadt.de) wrote:
: The problem with this simple task seems to be that changes done with
: chdir or system "cd " are only temporary while the execution of my
: script.
Perl FAQ, part 8:
"I {changed directory, modified my environment} in a perl script.
How come the change disappeared when I exited the script?
How do I get my changes to be visible?"
: Thanks a lot for your time spent answering my question
You're not welcome.
re-asking FAQs is Not Good.
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: 15 May 1999 14:24:45 GMT
From: mjtg@cus.cam.ac.uk (M.J.T. Guy)
Subject: Re: CPAN-POD & pulling my hair OUT! HELP! do the doc's really suck this bad?
Message-Id: <7hk03d$239$1@pegasus.csx.cam.ac.uk>
Charles Lindsey <chl@clw.cs.man.ac.uk> wrote:
>
>It would be nice if one of the mirroring sites could keep all the module
>texts in a directly ftpable form, so you could go and browse for anything
>that you were missing, or not sure about. Not to keep any other source
>codes, etc, of course, so people would not try to download the complete
>thing that way.
That's the theory behind having all the READMEs extracted as plain text.
The trouble is that most modules don't have much useful information in
their READMEs.
Mike Guy
------------------------------
Date: Sat, 15 May 1999 06:27:38 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Hash arrays
Message-Id: <q6ijh7.gp4.ln@magna.metronet.com>
armchair@my-dejanews.com wrote:
: In article <7hh47d$14q$1@nnrp1.deja.com>,
: John Porter <jdporter@min.net> wrote:
: > In article <7hh0nm$uqm$1@nnrp1.deja.com>,
: > armchair@my-dejanews.com wrote:
: > > How do I find out the number of elements in a hash array?
: > > Thanks
: >
: > perldoc perlfaq4: How can I know how many entries are in a hash?
: Can you add a function (a complement to exists() ) that does it?
I assume you mean "complement" in the sense of opposite?
If so, then such a function is not related to exists() that way.
The proposed function is about a hash (the aggregate).
The exists() function is about a key in a hash
(a part of the aggregate).
Anyway, such a function does exist, but it is spelled with
two keywords, as shown in the referenced FAQ:
scalar keys
:-)
: Then I
: can read about it in the part of books that talk about associative
: arrays, or better yet, in perlfunc.
type:
perldoc -f keys
read:
---------------
=item keys HASH
Returns a list consisting of all the keys of the named hash. (In a
scalar context, returns the number of keys.) The keys are returned in
---------------
You already can read about it in perlfunc.pod :-)
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: Sat, 15 May 1999 07:11:16 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Hash arrays
Message-Id: <kokjh7.gp4.ln@magna.metronet.com>
armchair@my-dejanews.com wrote:
: In article <ylwvya6ddk.fsf@windlord.stanford.edu>,
: Russ Allbery <rra@stanford.edu> wrote:
: > armchair <armchair@my-dejanews.com> writes:
: >
: > > Thanks. It seems a bit much, as all I really want to do is check to
: see
: > > if the hash has elements:
: >
: > Then test that. "if (%hash)".
: I believe I thanked you elsewhere for this tidbit.
: >
: > > Do they have a place to post requested enhancements to Perl?
: >
: > It's usually better to learn Perl first.
: I would definitely have to study real hard and long to find out that a
: hash name inside an if test returns 0 if the has is empty.
No you wouldn't.
You would have to look at one of the places where you *said*
you would look, "part of books that talk about associative arrays".
The books you have selected are your business. If they have errors
or omissions, you contact the author or publisher, not the newsgroup.
The standard Perl docs are shipped with the perl distribution. If
they have errors or omissions, you contact the newsgroup. Or even
file a bug report against the defective docs (but you better do
a _thorough_ search of the existing docs to make sure that what you
want added isn't really already there).
Changing Perl (and perl) is a big deal.
It might break something else.
It might take lots of coding to accomodate other features.
It will consume some of the precious volunteer time available
for changing stuff, taking time away from adding new things
rather than just a new way to do something that can already
be done.
Suggesting changes to Perl/perl should not be taken lightly.
There is a pretty easy trail through the Perl docs just as they
stand for finding the answer (2 answers actually) to your original
question.
"How do I find out the number of elements in a hash array?"
1) search for "hash" in the questions in the perlfaq*.pod files:
perl -ne 'print "$ARGV: $_" if /^=.*hash/i' perlfaq*.pod
2) read the 17 questions that are found. Notice the one that
was quoted in this thread. Read that FAQ.
3) since that FAQ mentions the keys function, you read about keys.
4) answer #1 is in the second sentence.
How long would that take?
Maybe 5-10 minutes?
How long did it take to get the answer by posting to Usenet?
You are not being sufficiently lazy and impatient :-)
Or, you go read about hashes as you said you would.
Perl's data types are discussed in the aptly named perldata.pod :-)
wherein it says:
"If you evaluate a hash in a scalar context, it returns a
value that is true if and only if the hash contains any
key/value pairs."
So you can write your own entries() function 2 ways, and not
give up more useful things that p5p could spend their time on.
-------------
sub entries1 {
my %h = @_; # better and faster to pass a ref to hash instead...
return scalar keys %h;
}
sub entries2 {
my %h = @_; # better and faster to pass a ref to hash instead...
return scalar %h;
}
-------------
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: Sat, 15 May 1999 11:57:50 -0300
From: Arved_37@chebucto.ns.ca (Arved Sandstrom)
Subject: Re: Hlp! XSUBPP has a matter.
Message-Id: <Arved_37-1505991157500001@dyip-106.chebucto.ns.ca>
In article <7hjg8t$ipa$1@news2.kornet.net>,
=?euc-kr?B?udrBvrq5IChQYXJrLCBKb25nLVBvcmsp?= <okpolis@okpolis.joo.net>
wrote:
> Hi. I follow example1 of perxstut document. But it's work strange.
>
> c:\www\gad\test>perl Makefile.PL
> Usage: xsubpp [-v] [-C++] [-except] [-prototypes] [-noversioncheck]
[-nolinenumb
> ers] [-s pattern] [-typemap typemap]...
file.xs
> Writing Makefile for
Mytest
>
You're getting xsubpp usage messages when running 'perl Makefile.PL'?
What system are you on? I'll be happy to take a look at your "perl -V'.
> So I add a line for debugging into c:\perl\lib\extutils\xsubpp file.
> $usage = "Usage: x<skip>. file.xs\nARGV is @ARGV\n";
>
> Please Help me. I had this.
>
> c:\www\gad\test>perl Makefile.PL -stastic
> Usage: xsubpp [-v] [-C++] [-except] [-prototypes] [-noversioncheck]
[-nolinenumb
> ers] [-s pattern] [-typemap typemap]...
file.xs
> ARGV is temp000
2
> Writing Makefile for
Mytest
I hope that switch typo is just in your email (-static, not -stastic).
Arved
------------------------------
Date: Sat, 15 May 1999 15:17:05 +0100
From: "Neil Rutherford" <neil_rutherford@cableinet.co.uk>
Subject: How to program a shell '#!<program>' statement.
Message-Id: <7hjvsn$9gh$1@news1.cableinet.co.uk>
Hi,
My goal:
Instead of passing a file name to a program for it to parse and execute, i
have a program work
in the same fashion as the shell:
#!/usr/bin/ksh (however ksh would be my own program)
I'm not trying to rewrite a shell, just a simple program to handle the input
from the
remainder of the file. As you know, the #! instructs the shell you are
using to
pass the remainder of the statements (lines) that follow to your
interpruter.
Does anyone know how the shell interacts with a program in 'C'?
for example, how do i have myprog pick up what's being passed... i've tried
pipes and even stdin.
eg:
#!/usr/local/bin/myprog
directive 1
directive 2
Neil.
===========================================================
E-Mail: neil_rutherford@yahoo.com - WEB E-Mail
E-Mail: neil_rutherford@cableinet.co.uk - Home E-Mail
===========================================================
------------------------------
Date: Sat, 15 May 1999 07:44:30 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: How to program a shell '#!<program>' statement.
Message-Id: <ummjh7.a25.ln@magna.metronet.com>
Neil Rutherford (neil_rutherford@cableinet.co.uk) wrote:
: My goal:
: Instead of passing a file name to a program for it to parse and execute, i
: have a program work
: in the same fashion as the shell:
: #!/usr/bin/ksh (however ksh would be my own program)
I am pretty sure that shebang lines are a feature of the
kernel, not the shell.
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: Sat, 15 May 1999 11:51:22 -0300
From: Arved_37@chebucto.ns.ca (Arved Sandstrom)
Subject: Re: man pages and FAQs: why posted?
Message-Id: <Arved_37-1505991151220001@dyip-106.chebucto.ns.ca>
In article <B362267696684E0077@204.112.166.88>, rlb@intrinsix.ca (Lee) wrote:
> In article <373c9171$0$211@nntp1.ba.best.com>,
> John Callender <jbc@shell2.la.best.com> wrote:
>
> >Lee <rlb@intrinsix.ca> wrote:
> >
> >> I have been reading this ng for quite a while, and also surmised those same
> >> reasons. But I don't think it will be effective, and I think it is an
> >> enormous waste of bandwidth.
> >
> >I think this "enormous waste of bandwidth" charge is suspect.
>
> Fair enough. And your suspicions may well be correct.
>
> >What do you really mean by it?
>
> I suppose that I mean simply that I view them as "flooding" the group with
> pointless posts. I started out simply asking why it was being done. I got a
> couple of reasonable answers, and it seems that it will continue, so I'll
> set some filters and live happily ever after.
>
>From another viewpoint, what Tom is doing is "push" delivery as opposed to
"pull". For me as a MacPerl aficionado it's valuable - the MacPerl
distribution is static, and while a new release is expected, the current
one has been around for a while. Updates to docs frequently are stll
relevant, even though the current MacPerl base is 5.004, and not 5.005_x.
When he puts the stuff out there, "in my face", I not infrequently read
it, and think "Ah hah, this is new".
Case in point - I am also a CPAN tester, and I port and build modules for
MacPerl (see http://pudge.net/mmp). If it wasn't for updated docs coming
out, I might not be aware of the qr// regexp operator in 5.005, and how
that can pose problems in trying to make modules available for a 5.004
system. (This is a bit of a strained example, as I also run the latest
5.005_x stable release on MkLinux, and so I knew about this particular
feature by reading the Changes files, but hopefully you get my point).
Yes, I could get the new docs in an active way. But this is "in my face",
as I say. It helps this developer.
Arved
------------------------------
Date: Sun, 16 May 1999 02:06:54 +0900
From: "Yeong Mo/Director Hana co." <factory@factory.co.kr>
Subject: Modify this Penpal script for better use
Message-Id: <7hk8ve$5qa$1@news2.kornet.net>
Hi,
I got a penpal script from a book, and it needs to be modofied a lot.
It will be appreciated if you modify it for better use, and send me back.
If you are willing to make a perfact penpal script,
Please visit http://factory.co.kr/cgi/penpal/index.html
You can get penpal.zip file at the url.
Thank you
------------------------------
Date: Sat, 15 May 1999 09:16:29 -0700
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: open, read,then print a file
Message-Id: <MPG.11a73db02f2435989a6f@nntp.hpl.hp.com>
In article <7hjot0$v4j$1@nnrp1.deja.com> on Sat, 15 May 1999 12:21:52
GMT, armchair@my-dejanews.com <armchair@my-dejanews.com> says...
> In article <7hj78o$atj$2@justice.csc.cuhk.edu.hk>,
> austin95002887@yahoo.com (Austin Ming) wrote:
> > How to open, read,then print a text.txt file to the browser in current
> > dierectory ?
> >
> ----------------------------------------------------------
> #!/usr/local/bin/perl -w
> use strict;
> use diagnostics;
Not such a good idea, I think. The 'diagnostics' module is large and
rather slow to load. The information it provides is identical to that
produced by
perldoc perldiag
You forgot to send the browser the HTTP header that tells it what to do
with the data it receives.
print "Content-Type: text/plain\n\n";
> my $input_file = "text.txt";
> open(INPUT_FILE,"<$input_file") or die "Can't open file $input_file:
> $!\n";
Keeping in mind that this diagnostic will go to STDERR, which may not be
accessible to the programmer or the user.
I prefer to write such diagnostics directly to STDOUT, while others
recommend this module:
use CGI::Carp 'fatalsToBrowser';
See <URL:http://x24.deja.com/[ST_rn=ps]/getdoc.xp?AN=477281694>
> my $file_line = "";
> while ( $file_line = <INPUT_FILE> )
> {
> print "--> $file_line";
> }
> close (INPUT_FILE);
--
(Just Another Larry) Rosler
Hewlett-Packard Company
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com
------------------------------
Date: 15 May 1999 14:40:27 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Perl "constructors"
Message-Id: <7hk10r$220$1@gellyfish.btinternet.com>
On Sat, 15 May 1999 13:16:43 GMT armchair@my-dejanews.com wrote:
> In article <373d5fd9@cs.colorado.edu>,
> tchrist@mox.perl.com (Tom Christiansen) wrote:
>> In comp.lang.perl.misc, armchair@my-dejanews.com writes:
>> :You cannot connect() with a
>> :constructor and get a status code back from the connect() - you get a
>> :reference to the object just created whether your connection has been
>> :successful or not. This problem exists in C++ as well.
>>
>> You're wrong. That's not the way it works in Perl.
>
> Oh, and how does it work in Perl.
> I have only seen examples where a Perl constructor returns a reference
> to a blessed variable which is a reference. Hence the syntax
>
> my $new_object = MyClass->Connect();
>
> if Connect() (your constructor) fails, we end up with a reference to a
> object that has not connected. With no idea that it failed at this
> point.
>
Er. Of course one has an idea.
my $new_object = MyClass->Connect() || die "Couldnt connect - ";
Or whatever behaviour one might consider appropriate - if you had even
spent a few seconds looking at Perl code you would have known this.
But of course it is a prerequisite of the troll that they have no
knowledge of the subject which they set upon.
>
> It appears that understanding Perl is a binary event. But the question
> is, what is <plonked>?
>
You have gained special status in the kill-files and filters of the
majority of the frequent posters to this group meaning that your
trolling will not be seen by those people.
I do hope that everyone will follow suit.
*plonk*
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: Sat, 15 May 1999 07:20:15 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Perl "constructors"
Message-Id: <f9ljh7.gp4.ln@magna.metronet.com>
armchair@my-dejanews.com wrote:
: In article <7uc%2.10345$L4.363390@news2.rdc1.on.home.com>,
: andrew-johnson@home.com wrote:
: > What makes you think that is what perl is doing?
: Because the book I have - "Perl From the Ground Up" in it's built-in
: function reference says that keys "returns all the keys for the Hash
: named". It does not mention "scalar context" as some right honorable
: fellow was nice enough to point out that the perlfunc does inside of
: parenthese after stating the above regarding returning all the keys.
Problems with a book are problems with the book, not with Perl.
If you have problems with a book, contact someone connected
with producing the book.
The only reference that matters are the docs that come with perl.
If you find a problem there, then mention it here.
If you find a problem elsewhere then mention it elsewhere.
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: 15 May 1999 14:22:32 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Perl scripting software
Message-Id: <7hjvv8$21t$1@gellyfish.btinternet.com>
On Sat, 15 May 1999 11:50:39 GMT mdichirico@my-dejanews.com wrote:
> Hi, I'm working through "Learning Perl" and I'm doing the examples in
> there with NotePad on my Windows computer. Does anyone have a
> suggestion of some good scripting environment software?
>
I dont actually know what you mean by 'scripting environment software'
sounds like marketing-speak to me.
Anyhow in case you mean a decent programmers editor you ought to
check out:
<http://reference.perl.com/query.cgi?editors>
before the usual boring thread starts about peoples editor preference.
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: Sat, 15 May 1999 09:24:58 -0700
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: PERLFUNC: hex - convert a string to a hexadecimal number
Message-Id: <MPG.11a73fb77fa061d0989a70@nntp.hpl.hp.com>
[Posted and a courtesy copy sent.]
In article <373d24c0@cs.colorado.edu> on 15 May 1999 01:39:44 -0700, Tom
Christiansen <perlfaq-suggestions@perl.com> says...
...
> Interprets EXPR as a hex string and returns the corresponding
> value. (To convert strings that might start with either 0, 0x, or
> 0b, see the "oct" entry in the perlfunc manpage.) If EXPR is
> omitted, uses `$_'.
>
> print hex '0xAf'; # prints '175'
> print hex 'aF'; # same
The behavior if the string contains other than exactly two hexadecimal
digits (after the optional '0x') should be specified.
--
(Just Another Larry) Rosler
Hewlett-Packard Company
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com
------------------------------
Date: Sat, 15 May 1999 08:32:15 -0600
From: "Zhan" <zzhan@cs.nmsu.edu>
Subject: question about STDOUT
Message-Id: <7hk0f1$gp2$1@bubba.NMSU.Edu>
hi, there
I am a newbie in this group. One of my friend got a problem when he was
running around Perl in Linux & NT also. I am also confused about the case.
If anyone here can help us out, I really appreciate it. The following is the
original message :
-----------------------------------------------
Yes! one trouble that I have thought for a long time, but I can't answer it,
I have wrote a chatroom CGI with Perl 5.0005 under Linux, but now when I
try run it under NT Server with ActivePerl 5.0005 for NT&95, a function
(system
calls)
"STDOUT->flush;" or "autoflush STDOUT 1;" do not work, but it run under
Linux
very well,
I don't know why, this is a test CGI :
#!/usr/bin/perl
use IO;
$i=1;
print "Content-type: text/html\n\n";
print "<html><head><title>Test Running CGI...</title><head><body>\n";
while ($i<=10) {
sleep(1);
print "This is Line number $i <br><script>self.scrollBy(0,100)</script>\n";
$i++;
STDOUT->flush;
}
And my chat room have another problem, I use IE to visit it is well, but
it's
Netscape killer now, if I use netscape for win version to visit it, netscape
will be crashed, I don't know why?Can u have time to help me?
-----------------------------------------------------------------
anybody has a clue about this, please put a post in this group or reply me
in personel. My email address is zzhan@cs.nmsu.edu.
Thanks in advance.
zhan
------------------------------
Date: 15 May 1999 14:46:11 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: TROLL ALERT (Re: Perl "constructors")
Message-Id: <7hk1bj$223$1@gellyfish.btinternet.com>
On Fri, 14 May 1999 11:08:25 GMT armchair@my-dejanews.com wrote:
> I think it is a questionable "feature" of Perl that the user can define
> any name for an object constructor. I think this should be changed. And
> an object should be able to consist of more than just a reference.
>
Come on guys cant you see this for the troll that it so obviously is.
Just killfile the sucker and get on with the day.
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: 15 May 1999 08:49:45 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: TROLL ALERT (Re: Perl "constructors")
Message-Id: <373d8989@cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc,
Jonathan Stowe <gellyfish@gellyfish.com> writes:
:Come on guys cant you see this for the troll that it so obviously is.
:Just killfile the sucker and get on with the day.
"In headlines today, the dreaded killfile virus spread across the
country adding dejanews to people's Usenet killfiles everywhere.
The programmer of the virus still remains anonymous, but has been
nominated several times for a Nobel peace prize."
--tom
--
"It's later than you don't think." --Larry Wall
------------------------------
Date: Sat, 15 May 1999 12:04:12 -0300
From: Arved_37@chebucto.ns.ca (Arved Sandstrom)
Subject: Re: TROLL ALERT (Re: Perl "constructors")
Message-Id: <Arved_37-1505991204120001@dyip-106.chebucto.ns.ca>
In article <7hk1bj$223$1@gellyfish.btinternet.com>, Jonathan Stowe
<gellyfish@gellyfish.com> wrote:
> On Fri, 14 May 1999 11:08:25 GMT armchair@my-dejanews.com wrote:
> > I think it is a questionable "feature" of Perl that the user can define
> > any name for an object constructor. I think this should be changed. And
> > an object should be able to consist of more than just a reference.
> >
>
> Come on guys cant you see this for the troll that it so obviously is.
>
> Just killfile the sucker and get on with the day.
>
Why is this a troll?
I think the man is in uncharted waters when he states that an object
should be able to consist of more than just a reference, since everything
is a reference when it comes right down to it.
But a fixed name for an object constructor ('new') is a feature of C++ and
Java, for example. Why should Perl be defiantly different?
More to the point, what's wrong with having a discussion over the issue?
Just to put my 1.5 CAN cents on the table, I like the ability to call a
constructor anything, because sometimes "new" is not intuitive. But that's
just me.
Arved
------------------------------
Date: 15 May 1999 09:03:20 -0600
From: Daniel Grisinger <dgris@moiraine.dimensional.com>
Subject: Re: TROLL ALERT (Re: Perl "constructors")
Message-Id: <m3u2tewf2f.fsf@moiraine.dimensional.com>
[mailed and posted]
Tom Christiansen <tchrist@mox.perl.com> writes:
> [courtesy cc of this posting sent to cited author via email]
>
> In comp.lang.perl.misc,
> Jonathan Stowe <gellyfish@gellyfish.com> writes:
> :Come on guys cant you see this for the troll that it so obviously is.
> :Just killfile the sucker and get on with the day.
>
> "In headlines today, the dreaded killfile virus spread across the
> country adding dejanews to people's Usenet killfiles everywhere.
You mean that there are still people without this-
("my-dejanews" -5000 nil r)
Wow.
> The programmer of the virus still remains anonymous, but has been
> nominated several times for a Nobel peace prize."
Also the position as Defender of Usenet. :-)
dgris
- still thinks it would be entertaining for everyone to post their
killfiles (although people would probably complain at my
103k monster :-)
--
Daniel Grisinger dgris@moiraine.dimensional.com
perl -Mre=eval -e'$_=shift;;@[=split//;;$,=qq;\n;;;print
m;(.{$-}(?{$-++}));,q;;while$-<=@[;;' 'Just Another Perl Hacker'
------------------------------
Date: Sat, 15 May 1999 12:21:50 -0400
From: "Peter Allaire" <pallaire@together.net>
Subject: using emacs with perl for win32
Message-Id: <373d9ea4@news.together.net>
Hello,
I will first admit that I am a novice to perl / emacs in case you didn't
realize that from my questions.
I am using Gnu Emacs 20.3.9.1 along with perl for win32 on a win98 machine.
I'd like to use Emacs as a text editor (does anyone recommend any other good
editor that's free?) for perl. I'd like to have a split screen where I can
type at the top and then compile the script at the bottom. If there are any
errors in the script, it should report them in the bottom, otherwise it
should prompt for input (if there needs to be any) and run the script in the
bottom half. I'd also like emacs to color my text according to perl
constructs (I know it can do it for c, but what do I need to do to make it
work for perl?). I'm pretty sure this stuff can be accomplished, because
I've done it before for c and lisp programs back in college.
Thanks,
-Peter
------------------------------
Date: 12 Dec 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 Dec 98)
Message-Id: <null>
Administrivia:
Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing.
]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body. Majordomo will then send you instructions on how to confirm your
]subscription. This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.
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 5673
**************************************