[8842] in Perl-Users-Digest
Perl-Users Digest, Issue: 2459 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Apr 29 22:07:54 1998
Date: Wed, 29 Apr 98 19:01:41 -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 Wed, 29 Apr 1998 Volume: 8 Number: 2459
Today's topics:
Re: How to read command line literally? (Ilya Zakharevich)
Re: How to read command line literally? (Martien Verbruggen)
Re: How to read command line literally? <dformosa@st.nepean.uws.edu.au>
Re: List of values for DBstatus? (Rich Miller)
Re: Matts Script Archive-WWWBoard-FrontPage-Suddenly No <dformosa@st.nepean.uws.edu.au>
Re: Odd Regexp Question (Hunter Johnson)
Perl and OLE/COM on UNIX nick@xyvision.com
perl and Year 2000 <sabigail@newbridge.com>
Re: Perl for Win32 not writing to file (Ethan H. Poole)
perl not in top 20 anymore <uri@sysarch.com>
Re: Print Currency <zenin@archive.rhps.org>
Re: Problem with Perl script (Probaply very simple) <tanr@vancpower.com>
Re: Text box alignmnet <president@tcfb.com>
Re: Win32 Perl - Drag and Drop? (Sean Malloy)
Re: You people want Perl to be popular? <Rosie@dozyrosy.demon.co.uk>
Re: You people want Perl to be popular? (I R A Aggie)
Re: You people want Perl to be popular? <rjk@coos.dartmouth.edu>
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 29 Apr 1998 19:05:28 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: How to read command line literally?
Message-Id: <6i7tlo$g9i$1@mathserv.mps.ohio-state.edu>
[A complimentary Cc of this posting was sent to Zenin
<zenin@archive.rhps.org>],
who wrote in article <893832976.399987@thrush.omix.com>:
> need from the command line. Why in the world would you create the
> mass hell that would be 100's of different globing styles per
> application (eg DOS and CP/M commands) and throw out all
Note that there are millions of globbing styles with the current
*nixish scheme. Note that there will be exactly one style if
glob_wildcards() were a system call.
You show yourself that your argument do not come to standards you
require from others. (Though the redirection part of your argument is
absolutely OK.)
> The *only* reason DOS, CP/M, VAX, et al can get away with it
> is because they lack the extremely useful power of Unix shell
> redirection features. Even then, it's caused far more problems
> then it has *ever* helped.
cmd has the same redirection features as tcsh, maybe even better. So
what? Why it is that your arguments are *so* flawed?
>
> : Command line is the most important element of IPC,
>
> The "most important element of IPC"??? Since when? It might be
> considered the most important part of *user* to program
> interaction, but not interprocess communication.
Most program use the command line as the only IPC element.
> Sorry, but this isn't even a matter of opinion. You're just wrong.
Interesting argument after considering what you wrote above.
Ilya
------------------------------
Date: 29 Apr 1998 23:49:47 GMT
From: mgjv@comdyn.com.au (Martien Verbruggen)
Subject: Re: How to read command line literally?
Message-Id: <6i8ear$s36$3@comdyn.comdyn.com.au>
In article <893888931.412211@cabal>,
? the platypus {aka David Formosa} <dformosa@st.nepean.uws.edu.au> writes:
> In <6i7tlo$g9i$1@mathserv.mps.ohio-state.edu> ilya@math.ohio-state.edu (Ilya Zakharevich) writes:
>
> [...]
>
>>Note that there are millions of globbing styles with the current
>>*nixish scheme.
>
> This has thrown me, are there millions of diffrent shells?
Probably not, but many shells can be configured to glob in different
ways. Although, millions is probably a bit much.
> But this is not what will happen, meany programers will ignore the
> standard system call and use there own the system globbing system. Some
> will just not implement globbing because of oversite or ignorence of the
> operator.
>
> I decided that dos globbing was broken when I found that "type *.txt"
> didn't work. There was no good reson for this.
Indeed. I do think that this was the main reason for globbing to be
done by the shell on unix systems. globbing is just done so incredibly
often, that relying on every application to do it the 'right' way, or
at least the same way as every other one is dangerous. Your example of
the standard DOS type command says it all.
Martien
PS. Damn. I tried to stop a shell discussion thread. Honestly, I
tried. :)
--
Martien Verbruggen |
Webmaster www.tradingpost.com.au | "In a world without fences,
Commercial Dynamics Pty. Ltd. | who needs Gates?"
NSW, Australia |
------------------------------
Date: 29 Apr 1998 22:28:51 GMT
From: ? the platypus {aka David Formosa} <dformosa@st.nepean.uws.edu.au>
Subject: Re: How to read command line literally?
Message-Id: <893888931.412211@cabal>
In <6i7tlo$g9i$1@mathserv.mps.ohio-state.edu> ilya@math.ohio-state.edu (Ilya Zakharevich) writes:
[...]
>Note that there are millions of globbing styles with the current
>*nixish scheme.
This has thrown me, are there millions of diffrent shells?
> Note that there will be exactly one style if
>glob_wildcards() were a system call.
But this is not what will happen, meany programers will ignore the
standard system call and use there own the system globbing system. Some
will just not implement globbing because of oversite or ignorence of the
operator.
I decided that dos globbing was broken when I found that "type *.txt"
didn't work. There was no good reson for this.
>> The "most important element of IPC"??? Since when? It might be
>> considered the most important part of *user* to program
>> interaction, but not interprocess communication.
>Most program use the command line as the only IPC element.
If you said that most programs used Standard imput and the only IPC
element I would have considered it arguable. If you had said that most
programs used socets for IPC (consider all those programs that use TCP/IP)
then I would also consider it valid.
These two far out shine the use of the command line for IPC.
--
I'm a perl programer if you need perl programing hire me.
Please excuse my spelling as I suffer from agraphia see the url. Support NoCeM
http://www.cit.nepean.uws.edu.au/~dformosa/Spelling.html http://www.cm.org/
I'm sorry but I just don't consider 'because its yucky' a convincing argument
------------------------------
Date: 30 Apr 1998 01:09:01 GMT
From: rchmllr@ix.netcom.com (Rich Miller)
Subject: Re: List of values for DBstatus?
Message-Id: <6i8ivd$ig4@dfw-ixnews7.ix.netcom.com>
In article <6i7re9$dhp$1@nnrp1.dejanews.com>, jase@cadence.com says:
>
>I'm have a SybPerl script that very infrequently runs into problems where its
>query is chosen as a deadlock victim by the SQL Server. I want to check the
>status of each SQL statement, and if an error like that happens, I can then
>have the script re-run the query. It seems like I should be able to determine
>if an error occurred using $dbh->{'Dbstatus'}, but I don't know what any of
>the returned values mean. Can somebody point me to a reference which lists
>the valid status values and their meanings?
Status values are documented in the sybdb.h header file in the OpenClient
include directory. A better approach to what you're trying to do, however,
would be to add a message handler which watches for a 1205 message, which is
sent by the server to any process which is killed as a result of deadlock
resolution.
Rich Miller
richard.a.miller@norwest.com
Norwest Mortgage
------------------------------
Date: 29 Apr 1998 22:48:18 GMT
From: ? the platypus {aka David Formosa} <dformosa@st.nepean.uws.edu.au>
Subject: Re: Matts Script Archive-WWWBoard-FrontPage-Suddenly Not Working
Message-Id: <893890098.457107@cabal>
In <6i71mi$he@fridge.shore.net> "Grinch" <grinch@whoville.com> writes:
>It's really sad that kid makes five times as much $$ as the people who clean
>up after him.
Ok, hands up who read that sentence and thourt "Why dose Matt makes more
PIDs?"
--
I'm a perl programer if you need perl programing hire me.
Please excuse my spelling as I suffer from agraphia see the url. Support NoCeM
http://www.cit.nepean.uws.edu.au/~dformosa/Spelling.html http://www.cm.org/
I'm sorry but I just don't consider 'because its yucky' a convincing argument
------------------------------
Date: 29 Apr 1998 20:10:07 GMT
From: jhunterj@lexis-nexis.com (Hunter Johnson)
Subject: Re: Odd Regexp Question
Message-Id: <6i81ev$45f@mailgate.lexis-nexis.com>
In article <354909b4.22316698@news.inforis.ru>,
Michael Poliakov <polk@inforis.ru> wrote:
> On 28 Apr 1998 11:50:59 -0500, Jonathan Feinberg <jdf@pobox.com> wrote:
>> ($foo) = /(\d{6})(?=[^-]|$)/;
> I suspect the correct way is
> ($foo) =~ /(\d{6})(?=[^-]|$)/;
> ^^^
Nah, the assignment is needed, not just the match operator. $foo is
to contain the number in the $_ string. By putting $foo in a list, the
// function will return an array of the values that would've otherwise
been assigned to $1, $2, etc. Only the first actually gets used in
this case....
The second statement does nothing to the value of $foo, just evaluates
to true or false based on whether $foo already contained a six-digit
number without a trailing hyphen.
Hunter
--
J. Hunter Johnson | "A little consistent wholesome modeling and
jhunterj@lexis-nexis.com | costly servanthood are worth millions of
(937) 865-6800 x5385 | true words harshly spoken."
Lexis-Nexis, Dayton, OH | -- Ron Sider
------------------------------
Date: Wed, 29 Apr 1998 15:13:48 -0600
From: nick@xyvision.com
Subject: Perl and OLE/COM on UNIX
Message-Id: <6i81lr$qgd$1@nnrp1.dejanews.com>
Perl for Win32 has a Win32::OLE package that enables Automation support. I
can call applications such as Excel from Perl and actuate the exposed
functions.
COM has been ported to various UNIX platforms, in particular Solaris. Does
perl support COM objects and COM calling conventions on UNIX platforms?
If not (as I suppose it doesn't), could someone knowledgeable about the
Win32::Ole package outline what would be involved in porting the package to a
UNIX platform?
Do any other perl-like scripting languages support this capability?
Any help would be appreciated.
Thanks,
Nick Raphael
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
------------------------------
Date: Wed, 29 Apr 1998 15:16:09 -0400
From: Shawn Abigail <sabigail@newbridge.com>
Subject: perl and Year 2000
Message-Id: <35477C79.28C4F5CA@newbridge.com>
Hi,
I am using perl 5.004 as a tool on my workstation. My boss wants to know
if it is Year 2000 compliant. What do I tell her? I haven't seen
anything on the web about this. Assuming that my operating system is
compliant, are there any Y2K issues with perl? Thanks!
Shawn Abigail
sabigail@newbridge.com
------------------------------
Date: 30 Apr 1998 00:46:07 GMT
From: ehp@gte.net (Ethan H. Poole)
Subject: Re: Perl for Win32 not writing to file
Message-Id: <6i8hkf$spa$1@gte2.gte.net>
In article <3547bded.0@news1.ibm.net>, gilberto@locaweb.com.br says...
>
>Oops... my mistake
>
>The file was actually being written - but on the web site root directory...
>
>Well, the problem is not that bad anymore - anyway how do I write to a file
>in the same directory?
>
To get around an IIS quirk where all CGI scripts believe they are running in
the root of a defined virtual path, I wrote the following function. It works
just as well under Unix.
It will return a path to the directory that the script actually resides in
(which in most cases should be the directory where the script is actually
executing from).
sub CalculateBaseCGIDirectory
{
my ($ThisScript, $BaseCGIDirectory, $ScriptName);
$ThisScript = $0;
# Translate all path names to Unix-like (e.g. /dir/)
$ThisScript =~ s/\\/\//g;
$ThisScript =~ /(.*)\/([^\/]*)/;
$BaseCGIDirectory = $1;
$ScriptName = $2;
return ($BaseCGIDirectory);
}
--
Ethan H. Poole | Website Design and Hosting,
| CGI Scripting...
========Personal========= | ============================
* ehp @ gte . net * | --Interact2Day--
http://home1.gte.net/ehp/ | http://www.interact2day.com/
------------------------------
Date: 29 Apr 1998 15:23:42 -0400
From: Uri Guttman <uri@sysarch.com>
Subject: perl not in top 20 anymore
Message-Id: <x767jsctz5.fsf_-_@sysarch.com>
>>>>> "MJG" == Michael J Gebis <gebis@albrecht.ecn.purdue.edu> writes:
>> There are a bunch of people voting for perl for People magazines
>> most beautiful person award. He is already in 9th place!!! Ahead
>> of the likes of Brad Pitt and Madonna!!! It will be so hilarious
>> if he wins. Yes this is an actual person who is actually a
>> computer language. So please go to
>> http://www.pathfinder.com/people/50most/1998/vote/index.html and
>> vote for perl Be sure to type the name in EXACTLY, spaces, commas,
>> and all, so it will count. He has 1304 votes at the time I am
>> writing this message. Matt Damon, who is in front of him has 1471,
>> and the first place Leo DiCaprio has 4222. So come on people! We
>> need a massive movement so perl can be recognized for the beauty
>> that he truly is.
i got a letter about voting for hank the angry dunken dwarf and look
what happenned. note that exact spelling is required for writein
votes. also perl is not even on the list even though MJG says it has
1304 vote which would make it #11. they must not like us.
the current top 20 is:
1.Hank the Angry, Drunken Dwarf, 49381 votes
2.Leonardo DiCaprio, 5428 votes
3.Faye Wong, 3661 votes
4.Gillian Anderson, 3650 votes
5.Madonna, 3366
6.Michelle Kwan, 3309
7.Kate Winslet, 3056
8.Hudson Leick, Callisto, 2200
9.Hanson, 1794
10.Garett Maggart, 1361
11.Roy Dupuis, 973
12.Roger Howarth, 835
13.Hank the Angry, Drunken Dwarf , 503
14.Hank the angry, drunken dwarf, 405
15.Hank the Angry Drunken Dwarf, 352
16.Hank, the Angry, Drunken Dwarf, 326
17.DPK, 276
18.Lucy Lawless, 260
19.John Linnell, 251
20.hank the angry, drunken dwarf, 236
--
Uri Guttman ----------------- SYStems ARCHitecture and Software Engineering
Perl Hacker for Hire ---- 8 Years of Perl Experience, Available Immediately
uri@sysarch.com --------- Resume and Perl Example at http://www.sysarch.com
Use the Best Search Engine on the Net -------- http://www.northernlight.com
------------------------------
Date: 29 Apr 1998 18:20:20 GMT
From: Zenin <zenin@archive.rhps.org>
Subject: Re: Print Currency
Message-Id: <893874449.305754@thrush.omix.com>
John Porter <jdporter@min.net> wrote:
: "$length{$s}"
: is preferable to
: "$eval{length $s}"
: if it occurs very much in your code. (We're lazy, after all.)
I always liked:
"@{[length $s]}"
Hey, "If it was hard to write, dammit it should be hard to read!"
:-)
--
-Zenin
zenin@archive.rhps.org
------------------------------
Date: Wed, 29 Apr 1998 15:35:21 -0400
From: Richard Tan <tanr@vancpower.com>
To: stevenf@pcdynamics.nl
Subject: Re: Problem with Perl script (Probaply very simple)
Message-Id: <354780F8.2872A80C@vancpower.com>
stevenf@pcdynamics.nl wrote:
> The problem is that I'm getting an : Internal Server Error 500
> This line : #!/usr/local/bin/perl is correct!
> The personal that made this says it works and I believe him because when I run
> it on my workstation it runs correct. But when I upload it onto the server
> where the script should run it doesn't work! :(
If it works on your workstation but not on the server, the problem may be because perl is in
/usr/local/bin/ in your workstation but somewhere else in the server. I use RedHat Linux and perl
is in /usr/bin/. Login to your server, do a "which perl", it will tell you where perl is.
--
Richard Tan
Virginia Power
tanr@vancpower.com
------------------------------
Date: Wed, 29 Apr 1998 15:51:17 -0400
From: Lionel Bourne <president@tcfb.com>
Subject: Re: Text box alignmnet
Message-Id: <354784B5.2C8B7F6E@tcfb.com>
Use tables.
Stephen
The Center For Business - Free Business Websites
http://www.tcfb.com
William Shaffer wrote:
> Hi
>
> Does any one know how to get text boxes to line up vertically?
>
> I want to have text boxes out from a *.cgi script (wwwboard) line up
> vertivally. I've read "Learning Perl" (O'Rielly Press) from cover to cover
> and haven't found the answer.
>
> Currently the text boxes align like this:
> _______________________________
> Optional Link URL : |_______________________________|
> _______________________________
> Link Title : |_______________________________|
> _______________________________
> Optional Image URL: |_______________________________|
>
> I want an out put similar to this below.
>
> (Note: Variable font size in news group format doesn't allow alignment in
> the figure. For all intensive purposes, these text boxes are aligned
> vertically)
> _______________________________
> Optional Link URL : |_______________________________|
> _______________________________
> Link Title : |_______________________________|
> _______________________________
> Optional Image URL : |_______________________________|
>
> Thanks in advance, William Shaffer
------------------------------
Date: 29 Apr 1998 15:38:00 EDT
From: malloy@concentric.net (Sean Malloy)
Subject: Re: Win32 Perl - Drag and Drop?
Message-Id: <354981b0.60263885@news.concentric.net>
culpep@bcm.tmc.edu (Pamela Culpepper) wrote:
>Using MacPerl, I can drag whatever file I want to
>process over the MacPerl camel icon and start Perl
>using that file.
>
>Can I do the same thing using Perl on Win32?
Drag a shortcut to your Perl interpreter out onto your desktop, and
then you can do drag-and-drop execution of Perl scripts by dragging
them onto the shortcut. Or just define the Perl interpreter as the
execute function for '.pl' files, and double-click on the file in the
Explorer.
--
Sean R. Malloy | American Non Sequitur
Naval Medical Center | Society
San Diego, CA 92134-5000 |
malloy@cris.com | "We may not make sense,
srmalloy@snd10.med.navy.mil | but we do like pizza"
FORMAL NOTICE: unsolicited commercial email will be read
at a charge of $500 per item. Receipt of such email shall
be considered to constitute acceptance of contract, and
will be billed immediately.
------------------------------
Date: Wed, 29 Apr 1998 20:48:58 +0100
From: Rosemary I H Powell <Rosie@dozyrosy.demon.co.uk>
Subject: Re: You people want Perl to be popular?
Message-Id: <PSqPeXAqQ4R1Ewlx@dozyrosy.demon.co.uk>
In article <35469455.4B144377@cglis.com>, Chris Lambrou
<archive@cglis.com> writes
>Well?
>
No they DONT'T want Perl to be popular because this will cause clpm to
get even fuller of M$ie newbies like me asking for (nay DEMANDING)
answers to frightfully fatuous FAQs and irritating the hell out of
everyone. Believe me.
Rosemary
Just Another Micro$oft Idiot
;-)
-------------------------------------------------------------------
| Rosemary I.H.Powell EMail: Home: rosemary@dozyrosy.demon.co.uk |
| Work: r.i.h.powell@rl.ac.uk |
| http://www.netlink.co.uk/users/dozyrosy/ |
| http://www.dozyrosy.demon.co.uk/ |
-------------------------------------------------------------------
------------------------------
Date: Wed, 29 Apr 1998 16:04:35 -0500
From: fl_aggie@thepentagon.com (I R A Aggie)
Subject: Re: You people want Perl to be popular?
Message-Id: <fl_aggie-2904981604350001@aggie.coaps.fsu.edu>
In article <1d88t75.16la9373easowN@slip166-72-108-69.ny.us.ibm.net>,
kpreid@ibm.net (Kevin Reid) wrote:
+ "Creede Lambard" <$_=qq!fearless\@NOSPAMio.com!;y/A-Z//d;print> wrote:
+ > We want Perl to be useful. Popularity ain't all it's cracked up to be.
+ Being popular helps it be useful, because more people would be writing
+ scripts, modules, etc...
So, you're saying that Mac's aren't terribly useful and Wintels are
overwhelmingly userful? You do realize that is the implication, yes?
James
--
Consulting Minister for Consultants, DNRC
The Bill of Rights is paid in Responsibilities - Jean McGuire
To cure your perl CGI problems, please look at:
<url:http://www.perl.com/CPAN-local/doc/FAQs/cgi/idiots-guide.html>
------------------------------
Date: Wed, 29 Apr 1998 21:40:35 -0400
From: Ronald J Kimball <rjk@coos.dartmouth.edu>
Subject: Re: You people want Perl to be popular?
Message-Id: <3547D694.A00E8F3C@coos.dartmouth.edu>
smitty7777@hotmail.com wrote:
>
> In article <x77m49cloe.fsf@sysarch.com>, Uri says...
> >
> >>>>>> "CL" == Chris Lambrou <archive@cglis.com> writes:
> >
> > CL> Well?
> >
> >it is. but you aren't :-)
>
> Very mature response, Uri. Perhaps you should get that diaper rash looked at.
Advice from someone who is obviously a *master* of mature responses. Whatever.
I found Uri's response to be clever and amusing.
--
_ / ' _ / - aka - rjk@coos.dartmouth.edu
( /)//)//)(//)/( Ronald J. Kimball chipmunk@m-net.arbornet.org
/ http://www.ziplink.net/~rjk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: 8 Mar 97 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 8 Mar 97)
Message-Id: <null>
Administrivia:
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 2459
**************************************