[11076] in Perl-Users-Digest
Perl-Users Digest, Issue: 4676 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Jan 18 01:04:45 1999
Date: Sun, 17 Jan 99 22:00:20 -0800
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Sun, 17 Jan 1999 Volume: 8 Number: 4676
Today's topics:
Re: A plea for less goofy signature files! (Larry Rosler)
Re: A plea for less goofy signature files! (Iain Chalmers)
append to beginning of file <jewell@OnlineRAGE.com>
Re: append to beginning of file <uri@home.sysarch.com>
CPAN useful from behind a firewall ? ( NEIL LOVELY)
Re: Downloading, Perl, Navigator, and file names dturley@pobox.com
Re: Help please!!! Automatic running of scripts <damian@infoxchange.net.au>
Re: Help please!!! Automatic running of scripts <eugene@snailgem.org>
Re: I have got a Perl problem <ebohlman@netcom.com>
Re: I have got a Perl problem (Tad McClellan)
Re: installing modules on WinNT pmoore43@hotmail.com
Re: installing modules on WinNT (Randy Kobes)
Re: kwlii: Formatting numbers in Perl ? kwlii@my-dejanews.com
Local MAC-address <Martin.Lorensen@get2.net>
Re: Need example of HTTP PUT using perl (David Formosa (aka ? the Platypus))
Need help deciphering code (THE Groovy)
Re: Perl Criticism (I R A Aggie)
Re: Perl Criticism (Sam Holden)
Re: Perl Criticism (Sam Holden)
Re: Perl Criticism (Sam Holden)
Re: Perl Criticism (Sam Holden)
Re: Perl Criticism (Tad McClellan)
perl Help bigcheese@my-dejanews.com
Re: URI:: and converting text to url-encoded (Randy Kobes)
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sun, 17 Jan 1999 17:15:39 -0800
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: A plea for less goofy signature files!
Message-Id: <MPG.110c2b13d1db22d9989997@nntp.hpl.hp.com>
In article <ylognxyh7p.fsf@windlord.stanford.edu>, rra@stanford.edu
says...
> Phlip <new_email@see.web.page> writes:
> > Russ Allbery wrote:
>
> >> ...the signature tear line ("-- \n")...
>
> > I have to ask - is that space between the second dash and the linefeed
> > part of the standard?
>
> Yes, actually. It's one of the parts that makes it rather annoying, since
> various things keep trimming off the space, and without the space it
> doesn't actually count.
>
> Causes all sorts of problems with PGP.
I have to ask -- how did such a dare-I-say ludicrous 'standard' evolve?
Because it is invisible, white-space before new-lines has always been
anathema. Until someone kindly enlightened me, my first newsgroup
postings didn't have a space there -- who knew, or who would dream?
Not a Perl question, I know, but perhaps someone can explain this
weirdness.
--
(Just Another Larry) Rosler
Hewlett-Packard Company
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com
------------------------------
Date: Mon, 18 Jan 1999 13:27:00 +1100
From: bigiain@mightymedia.com.au (Iain Chalmers)
Subject: Re: A plea for less goofy signature files!
Message-Id: <bigiain-1801991327000001@192.168.1.1>
Tramm Hudson wrote:
<-snip->
> print map{$n=hex $_;/[A-F0-9]/&&((map{$_?"L":" "}(map{$n&$_}(map{1<<$_}
> (reverse (0..3))))),++$l%16?"":"\n")} (split //,
> "2A6E1 249D 5 D C 0 0 0 1 2 A 842B 5495 140 0 0
> 1 2 A E 4 3A D4 9D D8 0 0 0 1 A A 2 4 2 AD 4
> 9 514 0 0 0 1 4 4 C 4 2A489 5 D 2 0 00119 D C 8 5 2
> 3 5 7 70000 1 1 5 1 4 8 5 5 4 5 4 5 0 0 0 0 11
> 9 9 8 8 7 7 4 6 6 6 0 0 0 01 U1 1 1 4 8 5 5 4
> 5 4 5 0 0 0 0 1 1 1 D 2E5 5357 480 001 " );
Heh, I like this one...
iain (with no goofy .sig or .sig separator)
------------------------------
Date: Sun, 17 Jan 1999 22:17:51 -0500
From: "Ronnie D. Jewell" <jewell@OnlineRAGE.com>
Subject: append to beginning of file
Message-Id: <36A2A7DF.385CD0EB@OnlineRAGE.com>
Hi All,
I need to open a file and write my new line to the beginning of the file
rather than append to the end.... I am sure there is a quick way to do
this any ideas???
the input text is one line long....
example script...
$input=param("incoming_text");
open (OUTPUT_FILE, ">>/home/smith/output.txt");
print OUTPUT_FILE "$input";
close (OUTPUT_FILE);
--
RAGE Enterprises
Ronnie D. Jewell jewell@onlinerage.com
voice: 304-525-1898
http://www.onlinerage.com
------------------------------
Date: 17 Jan 1999 23:50:28 -0500
From: Uri Guttman <uri@home.sysarch.com>
Subject: Re: append to beginning of file
Message-Id: <x7u2xpfaln.fsf@home.sysarch.com>
>>>>> "RDJ" == Ronnie D Jewell <jewell@OnlineRAGE.com> writes:
RDJ> I need to open a file and write my new line to the beginning of the file
RDJ> rather than append to the end.... I am sure there is a quick way to do
RDJ> this any ideas???
RDJ> the input text is one line long....
have you tried to read the perl FAQ? it is included with your perl
distribution.
perldoc perlfaq5
not only is this an FAQ but the stupid oxymoron "append to beginning of
a file" is actually mentioned in the title of this FAQ. how convenient!
uri
--
Uri Guttman ----------------- SYStems ARCHitecture and Software Engineering
Perl Hacker for Hire ---------------------- Perl, Internet, UNIX Consulting
uri@sysarch.com ------------------------------------ http://www.sysarch.com
The Best Search Engine on the Net ------------- http://www.northernlight.com
------------------------------
Date: 18 Jan 1999 02:54:27 GMT
From: nl012@un.seqeb.gov.au ( NEIL LOVELY)
Subject: CPAN useful from behind a firewall ?
Message-Id: <77u7p4$r4u4@inet6.citec.com.au>
I have to perform the following machinations to ftp to ftp.perl.org
from work where I am behind a firewall
12:36pm =>ftp proxy 1687
Connected to proxy.seqeb.gov.au.
220-
220- <====================================>
220- --ooOoo--
220- You are passing through
220- the SEQEB FTP Gateway
220- --ooOoo--
220- <====================================>
220
Name (proxy:nl012): anonymous@ftp.perl.org
331-(----GATEWAY CONNECTED TO ftp.perl.org----)
331-(220 ProFTPD 1.1.7pl3 Server (ProFTPD) [defender.perl.org])
331 Anonymous login ok, send your complete e-mail address as password.
Password:
230 Anonymous access granted, restrictions apply.
ftp>
CPAN.pm seems unable to cope with the above scenario so I am currently
unable to pull modules from ftp.perl.org using CPAN.pm. Anyone know of a
workaround ?
Neil
--
Neil Lovely |
Computer Support Engineer | e-mail : nl012@un.seqeb.gov.au
South East Queensland Electricity Board | Phone : +61 7 223 4256
GPO Box 1461 Brisbane Q 4001 Australia | Fax : +61 7 221 7556
------------------------------
Date: Mon, 18 Jan 1999 01:40:56 GMT
From: dturley@pobox.com
Subject: Re: Downloading, Perl, Navigator, and file names
Message-Id: <77u3f7$hn9$1@nnrp1.dejanews.com>
In article <77td7h$7nb$1@birch.prod.itd.earthlink.net>,
"KC Hunt" <khunt@earthlink.net.no-spam> wrote:
> and a simple loop that reads a line and prints a line to do this. Is there
> another way I can download a file trough the browser? Is there a way to
> specify the name of the file being downloaded?
>
I pas an umknown content-type to force the browser to download, all Netscape
browsers I've tried accept my filename. IE won't tho'.
Do something like this:
$outFile = 'myfile.txt';
print "Content-type: another/download-file\n"; #browser will prompt for save,
print "Content-Disposition: attachment; filename=$outFile\n";
print "Content-Description: Data File\n\n";
open (FILE, $outFile) || die "Nope: $!\n";
while (read(FILE,$data,1024)) {
print $data;
}
--
____________________________________
David Turley
dturley@pobox.com
http://www.binary.net/dturley/
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Mon, 18 Jan 1999 12:31:39 +1100
From: "Damian" <damian@infoxchange.net.au>
Subject: Re: Help please!!! Automatic running of scripts
Message-Id: <916623069.189457@atlas.onthe.net.au>
>Hello,
>I am a perl programmer and I would like to know how to set up a server to
>run a script periodically. For example, I want the server to run a script
>which
>deletes the contents of a temp. file every 24 hours. How can I do this? Any
>help would
>be VERY appreciated.
>
vi /etc/crontab
or
cd /etc/cron.daily
or
man cron
You'll need root to modify the cron files.
------------------------------
Date: Sun, 17 Jan 1999 20:39:30 -0500
From: Eugene Sotirescu <eugene@snailgem.org>
To: MekaGames Staff <support@mekagames.com>
Subject: Re: Help please!!! Automatic running of scripts
Message-Id: <36A290D2.10E8EE2A@snailgem.org>
MekaGames Staff wrote:
>
> Hello,
> I am a perl programmer and I would like to know how to set up a server to
> run a script periodically. For example, I want the server to run a script
> which
> deletes the contents of a temp. file every 24 hours. How can I do this? Any
> help would
> be VERY appreciated.
>
You're using a synechdoche, right? (server = box with the operating
system)
You mean you want the system to run a script periodically? If so, and
you're under UNIX, look into crontab (do a man crontab). cron (man cron)
will let you run programs as periodically as you wish (and no, this cron
doesn't eat its children ;----------) ).
(BTW, this has nothing to do with Perl)
--
Eugene
"I have an Apache Web Server that uses CGI forms written in COBOL."
Post in clpm
------------------------------
Date: Mon, 18 Jan 1999 04:37:45 GMT
From: Eric Bohlman <ebohlman@netcom.com>
Subject: Re: I have got a Perl problem
Message-Id: <ebohlmanF5qnIx.JAt@netcom.com>
Ronald J Kimball <rjk@linguist.dartmouth.edu> wrote:
: Specifically, instead of:
: while ($line = <FH>) {
: for example, you would want to write:
: while (defined($line = <FH>)) {
Note that in 5.005, the two are equivalent; perl compiles a defined()
test into the code for the first construct.
------------------------------
Date: Sun, 17 Jan 1999 22:44:30 -0600
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: I have got a Perl problem
Message-Id: <e7eu77.8b4.ln@magna.metronet.com>
[ no Unix specific stuff here. Newsgroups and Followups trimmed ]
Ilya (NO_SPAM_PLEASE_ilya@napavlly.rose.hp.com) wrote:
: I am getting the following errors in my Perl scripts.
All messages that perl might issue are documented in the
'perldiag.pod' man page.
In the future, please try looking it up there before posting.
: I would like to know
: what I can do to fix these errors.
Just do what the message asks you to do ;-)
: I don't have that many lines in the
: files.
It is a bug in perl.
It gives the wrong line number.
That warning is given by 5.004 but not by 5.003 nor 5.005.
: I get this error message with Perl 5.004, but not 5.003. The platform is
: HP-UX 10.20 and 9.*.
: Value of <HANDLE> construct can be "0"; test with defined() at probe_components.pl line 65535.
Find where you are doing something like:
while ($line = <>)
And change it to:
while ( defined($line = <>) )
The warning is meant to let you know that in the pathologic case
where there is no newline at the end of a file, and the file
ends with a zero, you will miss processing the last chunk of data.
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: Mon, 18 Jan 1999 02:13:20 GMT
From: pmoore43@hotmail.com
Subject: Re: installing modules on WinNT
Message-Id: <77u5bq$j5o$1@nnrp1.dejanews.com>
I've got the Win32 dist of Perl from ActiveState I've run into the same
catch-22 when trying to install libwww-perl-5.36. It needed
ExtUtils/MakeMaker.pm, so I downloaded MakeMaker. I tried installing
MakeMaker which needed ExtUtils/Manifest.pm, so I download Manifest. I try
installing File-Manifest-1_06 which needs MakeMaker again. Argh!
On every install, the error is:
Can't locate [Fill in any of the modules from above] in @INC at Makefile.PL
line 3.
BEGIN failed--compilation aborted at Makefile.PL line 3.
I'm guessing that either I've got these modules installed with the dist and
my @INC path is not set properly OR these modules didn't come with the core
dist. Can someone tell me how to tell what modules are installed currently
(do you just have to look in the perl/lib dir?) and how to properly set my
@INC path on Win32. OR better yet, is there a dist that has these "core"
modules already builtin?
TIA,
pm
In article <wr7n2.2101$nJ.11746@typhoon01.swbell.net>,
"Micah Roark" <mroark@amerisale.com> wrote:
> I ran into the same problem recently with the Image Magick module interface
> Perl Magick from www.wizards.dupont.com/christy . Except in my case, it
> didn't say the path was wrong, I found I was actually missing a lot in
> \perl\lib\extutils (Ext::Utils) I beleive your path situation has a lot to
> do with your original install of the perl core and whatever is set in your
> NT registry. With IIS4, every thing should be handled in Script Mapping
> under Home Dir/Config. I tried downloading the missing mods and installing
> from CPAN, but every single time, MakeMaker would say cannot find this
> module, or cannot find that module, and it wound up being a big catch 22
> spaghetti bowl. So I finally just went to ActiveState.com and grabbed the
> new ActivePerl dist which solved everything after I installed it. From what
> I could tell, when I originally installed perl, it was just the core.
> ActivePerl bundles a lot more together for you (PerlScript, PerlIIS, usefule
> mods, etc.), regarding MakeFiles, and the install was very seamless with
> IIS4 (had install sheild/wizard combo, no goofy registry patches, etc...)
> Except, it didn't solve everything. After I got my my Makefile setup, I had
> to run "nmake" from microsoft as opposed to "make", which took forever to
> find, and now, lucky me, Nmake is requesting CL.EXE which turns out is
> microsoft's C pre-processor/compiler that you can only get with Visual C++.
> when will it ever end? Hope ActivePerl may help you.
>
> Micah Roark
> mroark@amerisale.com
>
> rimmkaufman@crutchfield.com wrote in message
> <77it9t$9br$1@nnrp1.dejanews.com>...
> >I'm running perl on WINNT, with the perl directory at G:\perl
> >For the first time, I am trying to install a module from CPAN
> >(libnet-1.0606) which requires a
> > perl Makefile.PL
> > make
> > make test
> > make install
> >sequence. When I run perl Makefile.pl, I get an error stating that
> >MakeMaker cannot find installed perl libraries or source code.
> >It also states that it cannot find
> > G:\alan\programs\perl\lib\core\perl.h
> >
> >Why is it looking in G:\alan\programs?
> >
> >How do I tell it to look in G:\perl?
> >
> >Thanks!
> >
> >Alan
> >
> >(It would be great also to receive an email copy of any response at
> >rimmkaufman@crutchfield.com)
> >
> >-----------== Posted via Deja News, The Discussion Network ==----------
> >http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
>
>
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: 18 Jan 1999 03:38:08 GMT
From: randy@theory.uwinnipeg.ca (Randy Kobes)
Subject: Re: installing modules on WinNT
Message-Id: <slrn7a5bn3.f9s.randy@theory.uwinnipeg.ca>
On Mon, 18 Jan 1999 02:13:20 GMT,
pmoore43@hotmail.com <pmoore43@hotmail.com> wrote:
>I've got the Win32 dist of Perl from ActiveState I've run into the same
>catch-22 when trying to install libwww-perl-5.36. It needed
>ExtUtils/MakeMaker.pm, so I downloaded MakeMaker. I tried installing
>MakeMaker which needed ExtUtils/Manifest.pm, so I download Manifest. I try
>installing File-Manifest-1_06 which needs MakeMaker again. Argh!
Hi,
What ActiveState version do you have? I believe early versions
have this problem, but the later ones don't. Alternatively, with
the later versions you can use the Perl Package Manager (ppm) to
automatically install many of the more popular modules.
--
Best regards,
Randy Kobes
Physics Department Phone: (204) 786-9399
University of Winnipeg Fax: (204) 774-4134
Winnipeg, Manitoba R3B 2E9 e-mail: randy@theory.uwinnipeg.ca
Canada http://theory.uwinnipeg.ca/
------------------------------
Date: Mon, 18 Jan 1999 04:36:43 GMT
From: kwlii@my-dejanews.com
Subject: Re: kwlii: Formatting numbers in Perl ?
Message-Id: <77udoq$q9o$1@nnrp1.dejanews.com>
In article <ebohlmanF5LGCu.InC@netcom.com>,
Eric Bohlman <ebohlman@netcom.com> wrote:
> kwlii <kwlii@bigfoot.com> wrote:
> : In COBOL you can create an edit mask for formatting numbers
> : ie: 28888.00 = $28,888.00 with a PIC $zz,zzz.99
>
> : How do you format a number to include the , and the $.
>
> Check out Number::Format, available at your nearest CPAN site.
>
>
I can find no Number::Format on the CPAN sites. The Perl books state
that you can't get floating currency symbols or brackets around negative
numbers or anything interesting. Does anyone have a subroutine that will
format numbers like money, or put ','s in the large numbers?
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Mon, 18 Jan 1999 02:34:03 +0100
From: "Martin Lorensen" <Martin.Lorensen@get2.net>
Subject: Local MAC-address
Message-Id: <Pcwo2.41$bO5.105@news.get2net.dk>
Hi!
I'm trying to figure out a way to fetch the MAC-address of the localhost
from perl.
I have found a lot of descriptions on finding hosts on the local network
segment's MAC-adresses using the arp-table.
So fare my best solution is to make some ugly code that calls diffrent
external programs depending on the platform (HP: /usr/sbin/lanscan, Sun:
/usr/sbin/ifconfig -a, etc) - That isn't very nice!
(SNMP might be an option, but most of our hosts has SNMP disabled, so even
if its posible throw SNMP, it's not the solution)
--
Yours.
Martin Lorensen
------------------------------
Date: 18 Jan 1999 01:06:56 GMT
From: dformosa@zeta.org.au (David Formosa (aka ? the Platypus))
Subject: Re: Need example of HTTP PUT using perl
Message-Id: <slrn7a529g.8dg.dformosa@godzilla.zeta.org.au>
In article <369FA0A8.3FC2FEAA@harris.com>, Charlie Davies wrote:
>This is a cryptographically signed message in MIME format.
Smime signatures are the work of the devil.
9 lines mime headers
4 lines content
7 lines lame .sig with ascii art
22 lines vcard.
56 lines smime signature.
>Does anyone have a simple example showing how to put a file via
>HTTP PUT method including and authorization header?
Read the docs for LWP
--
Please excuse my spelling as I suffer from agraphia. See
http://www.zeta.org.au/~dformosa/Spelling.html to find out more.
How to win arguments on usenet http://www.zeta.org.au/~dformosa/usenet.html
------------------------------
Date: 18 Jan 1999 01:29:24 GMT
From: thegroovy@aol.com (THE Groovy)
Subject: Need help deciphering code
Message-Id: <19990117202924.18393.00001992@ng-cd1.aol.com>
Hello,
I was trying to patch some security holes in one of my scripts and someone
suggested using the following code, however, I am not sure what does what (and
he didn't explain very well). Thanks for any help!
A little background on what I'm trying to do:
Making a mailing list program, and trying to make sure that it is fairly secure
before releasing it. Also, if you are good with perl programming with security,
please contact me so I can ask you a couple more questions and to see if you
find any other loopholes. Once again, thanks.
if ($line =~ m/[^\w\.\&\@]/) { #process unsafe characters }
# What this means is the match returns true if any characters NOT
# in your character class exist.
else { #check the format & other stuff
if ($line =~ m/^[\w\.\&]+\@[\w\.]+$/) {
#process a probably
# OK e-mail address.
}
}
Regards,
Gil Hildebrand, Jr.
UIN: 28517138
THEGroovy\@aol.com
remove the \ to email me (I hate spam!)
------------------------------
Date: Sun, 17 Jan 1999 20:01:43 -0500
From: fl_aggie@thepentagon.com (I R A Aggie)
Subject: Re: Perl Criticism
Message-Id: <fl_aggie-1701992001430001@aggie.coaps.fsu.edu>
In article <77tffl$1ec$1@nnrp1.dejanews.com>, topmind@technologist.com wrote:
+ I am talking about generalities. I have maintained many other's
+ code that clearly emphasized the short-term. Nobody ever
+ punished or "marked down" those guys.
I take it that your supervisor never, ever gets on your case about how
long your program is taking to write? I take it you've never been told
that marketing promised something in two weeks, and they made the promise
a week ago, so don't count on taking the weekend off?
So, what do _you_ do in that situation? tell 'em it can't be done? only
to have them bring in someone else who's willing to do a hack, which
happens to solve the problem (in this particular case).
Guess who's going to be called "a team player" and "our go-to guy"?
+ The Dilbert strip is very popular because of
+ superficial management techniques, thus I am not alone
+ in this claim.
No, the managment techniques aren't superficial. The managers, however,
are. They have no understanding of what it is that they're managing, they
want it done in the least amount of time, and since they don't have a clue,
anything they don't understand must be easy.
That isn't the fault of the programmers. That's a fault of a company so
devoted to the bottom-line that they can't see tomorrow.
Out of curiousity, have you looked at Ada?
James
------------------------------
Date: 18 Jan 1999 05:15:48 GMT
From: sholden@pgrad.cs.usyd.edu.au (Sam Holden)
Subject: Re: Perl Criticism
Message-Id: <slrn7a5gs4.dj5.sholden@pgrad.cs.usyd.edu.au>
On Sun, 17 Jan 1999 20:05:28 GMT, topmind@technologist.com wrote:
>In article <slrn7a32rt.967.dformosa@godzilla.zeta.org.au>,
> dformosa@zeta.org.au (David Formosa (aka ? the Platypus)) wrote:
>> In article <36A098DD.11C5A0B1@ngb.se>, Staffan Liljas wrote:
>> >topmind@technologist.com wrote:
>> [...]
>>
>> >> Design a language for cryptologists and the best ......
>> >
>> >But you have still not showed us one single piece of cryptological code
>> >that wasn't part of a sig or written for a competition.
>>
>
>
>I don't have any examples and currently have no contact with
>other's Perl code. Sorry.
So all your cries of cryptic incomprehensible code have been based on your
imagaination or your own code. I'm replying to a troll again... damn.
>
>
>> I don't know, Crypt::IDEA is quite cryptological.
>>
>
>Where is that?
And you obviously have no experience actually writing anything slightly
bigger than hello world in perl or you would know the answer. Unless of
course your reason for thinking perl is so unmaintanable is because you
don't use the modules that do almost everything for you and thus result in
very readable code...
--
Sam
Remember that the P in Perl stands for Practical. The P in Python
doesn't seem to stand for anything.
--Randal Schwartz in <8cemsabtef.fsf@gadget.cscaper.com>
------------------------------
Date: 18 Jan 1999 05:22:48 GMT
From: sholden@pgrad.cs.usyd.edu.au (Sam Holden)
Subject: Re: Perl Criticism
Message-Id: <slrn7a5h98.dj5.sholden@pgrad.cs.usyd.edu.au>
On Sat, 16 Jan 1999 20:40:33 GMT, topmind@technologist.com wrote:
>In article <369f5fa8.2780852@news.skynet.be>,
> bart.lateur@skynet.be (Bart Lateur) wrote:
>> topmind@technologist.com wrote:
>>
>> But the fact that quite of few of my favorites were picked up, may well
>> indicate that quite a few people want pretty much the same thing from a
>> computer language as I do:
>>
>> 1) Simple, so you don't have to try too hard to remember how to work
>> with it (or, as in Perl, with a workable subset of it).
>
>
>Simple to write, but may not be to read if you pick up the
>code of a proud cryptologist.
Yoy have still failed to show that any of these mythical cryptologists
actually exist...
>
>
>> 2) Powerful. I hate to bump into relatively simple problems, where the
>> only reply is "you can't do that".
>> 3) Redundancy. I hate redundancy. And verbosity. Having to type the
>> header line of functions twice, or the necessity for elaborate
>> declarations for relatively brainless stuff, those things really turn me
>> off.
>>
>
>
>That is what my suggested "@" operator is for.
>It can be used for any function, and it is clear
>which parameter it uses.
>Can Perl's "=~" be used for any function? Where's my
>book?
That doesn't really make sense... =~ is an operator, thus you are saying...
Can Perl's + be used in any function?
Can Perl's - be used in any function?
Can Perl's > be used in any function?
Of course I can use them in a function, but I know you mean something else
I just can't work out what it is with my slim grasp of English.
>> Also:
>> 4) Lack for risk for subtle bugs. Things that blow up in your face,
>> without much of an apparent reason. See the running advertisements for
>> PC-Lint in DDJ, and you'll see part of why C isn't in my favorites list.
>
>
>Perl can get somewhat funky too.
>It has referants (pointers) for example.
>It is true that they are less "memory-tied" than C, but
>pointers are archaic constructs with no useful purpose other
>than raw speed.
So you don't like references now... Now I know you should go away and use some
other language. You'll have to avoid Python, Java, Pascal, Visual Basic,
Eiffel, and probably every other language I know except befunge, and sh of
course (unless you count soft-references...)
--
Sam
testing? What's that? If it compiles, it is good, if it boots up it is
perfect.
--Linus Torvalds
------------------------------
Date: 18 Jan 1999 05:24:43 GMT
From: sholden@pgrad.cs.usyd.edu.au (Sam Holden)
Subject: Re: Perl Criticism
Message-Id: <slrn7a5hcr.dj5.sholden@pgrad.cs.usyd.edu.au>
On Sat, 16 Jan 1999 20:46:38 GMT, topmind@technologist.com wrote:
>In article <slrn79se7t.lmc.dformosa@godzilla.zeta.org.au>,
> dformosa@zeta.org.au (David Formosa (aka ? the Platypus)) wrote:
>> In article <77kusq$kh$1@nnrp1.dejanews.com>, droby@copyright.com wrote:
>> >In article <slrn79lm8o.mtj.dformosa@godzilla.zeta.org.au>,
>> > dformosa@zeta.org.au (David Formosa (aka ? the Platypus)) wrote:
>>
>> [...]
>>
>> >> Then have your boolean equility operator called "eq" then.
>
>
>I guess this could be considered, but it is a bit harder to
>read than the symbols and less familiar. I shall put it in
>the next revision, okay?
>
>(I can't find the original message for this.)
>
>> >>
>> >
>> >Or get an APL keyboard and use left-arrow for assignment. Or emulate Algol
>> >and use := for assignment.
>>
>
>
>But people who use a lot of languages will keep forgetting
>the ":" and accidently make them booleans.
Of course people will also mistype 'eq' as '=' so there really is no
solution if you assume that the programmer is a complete and utter
moron as you assume to.
--
Sam
You are bordering on ridiculous if you think you need to support your
premises. Such an argument is an infinite regression.
--George Reese in <wv0O1.1521$Ge.4809664@ptah.visi.com>
------------------------------
Date: 18 Jan 1999 05:28:04 GMT
From: sholden@pgrad.cs.usyd.edu.au (Sam Holden)
Subject: Re: Perl Criticism
Message-Id: <slrn7a5hj4.dj5.sholden@pgrad.cs.usyd.edu.au>
On Sat, 16 Jan 1999 20:52:56 GMT, topmind@technologist.com wrote:
>In article <77l7kc$8mj$1@nnrp1.dejanews.com>,
> tiptopmind@my-dejanews.com wrote:
>
>Why are some of you trying to slam me personally?
>
>Fortunately, I am perfectly able to defend my opinions
>and enjoy debates, but only from PEOPLE WHO LOOK
>AT THE IDEA INSTEAD OF TRYING TO SLANDER SOMEBODY
>PERSONALLY.
>
>It is a shame that sick people like you roam the
>web. I bet you are a professional spammer or hack
>for living. How many credit cards number have you
>stolen you sick creap! Sick intentions from
>sick people.
How do you manage to type those last two paragraphs without spontaneously
combusting in a display of contradiction that chakes the universe???
>
>
>> In article <77hgnn$1u2$1@nnrp1.dejanews.com>,
>> topmind@technologist.com wrote:
>>
>> >GO TO HELL YOU SICK, LYING CREEP!!!!!!!!!
Oh you said that as well... I think you might have started this 'SLANDER'
thing that you complain about. I could be wrong, the message could have
been edited, I don't care enough to actually take the time to check back
and see...
>>
>> Now that is not nice.
>>
>> Sounds like something Howard Stern might say. Are you a big Howard fan top?
>> I know you are interested in UFO's so you must be fascinated with
>> coincidences too. Here is an interesting one.
>>
>> A Bryce Jacobs has a homepage devoted to Howard Stern at
>> http://ourworld.compuserve.com/homepages/nerdwod/
>> where he also complains that that his wife gives him grief about the size of
>> his stomach.
>>
>> On the home page there is link to a UFO page (containing some javascript
>> errors). The link points to:
>> http://www.geocities.com/Area51/Corridor/5004/ufobs.htm
>> which includes the the email address:
>> .....
>> .....
Which part did you find slanderous again???
--
Sam
compiling kernels is what I do most, so they do tend to stick to the
cache ;) --Linus Torvalds
------------------------------
Date: Sun, 17 Jan 1999 23:36:50 -0600
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Perl Criticism
Message-Id: <i9hu77.7o4.ln@magna.metronet.com>
tiptopmind@my-dejanews.com wrote:
: In article <77terh$um$1@nnrp1.dejanews.com>,
: topmind@technologist.com wrote:
[ sorry to piggyback on tiptop's followup, but I killfile fools
and so don't see topmind's posts anymore
]
: > It must be that I am reaching celebrity
: > status in this group
Don't be getting all puffed up about celebrity status.
Daffy Duck is a celebrity...
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: Mon, 18 Jan 1999 05:37:42 GMT
From: bigcheese@my-dejanews.com
Subject: perl Help
Message-Id: <77uhb5$t5j$1@nnrp1.dejanews.com>
I need to find a way to return a certain character of a string, counting from
the beginning
ie: string = 'abcd', character 1 of string = 'a', 2='b', etc
Can anyone help me?
Thanks!
-Dan
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: 18 Jan 1999 01:24:52 GMT
From: randy@theory.uwinnipeg.ca (Randy Kobes)
Subject: Re: URI:: and converting text to url-encoded
Message-Id: <slrn7a53t8.eg6.randy@theory.uwinnipeg.ca>
On Sun, 17 Jan 1999 23:42:10 +0100, Willem <spam@dikkelul.com> wrote:
>How do I use the URI module to convert text to url-encoded? (eg %20 for
>spaces)
>(Or) How do I use the CGI module to accomplish this?
Hi,
In URI-1.00 there's URI::Escape, called as
use URI::Escape;
my $safe = uri_escape("Always give 110%\n");
Or in CGI.pm you can use the escape function, if necessary.
--
Best regards,
Randy Kobes
IPhysics Department Phone: (204) 786-9399
University of Winnipeg Fax: (204) 774-4134
Winnipeg, Manitoba R3B 2E9 e-mail: randy@theory.uwinnipeg.ca
Canada http://theory.uwinnipeg.ca/
------------------------------
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 4676
**************************************