[9979] in Perl-Users-Digest
Perl-Users Digest, Issue: 3572 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Aug 28 09:03:07 1998
Date: Fri, 28 Aug 98 06:00:16 -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 Fri, 28 Aug 1998 Volume: 8 Number: 3572
Today's topics:
A legal newbie question (I hope). <hauk@forumnett.no>
Re: CGI Form Refresh <dan@fearsome.net>
Re: COBOL and Perl <davidc@selectst.com>
Re: COBOL and Perl <davidc@selectst.com>
Re: comp.lang.perl.windows.misc (Michael J Gebis)
Re: even or odd <a.g.macinnes@rl.ac.uk>
explicit cast from @ to % ?!?!? <posern@informatik.uni-marburg.de>
Re: explicit cast from @ to % ?!?!? (Maurice Aubrey)
Re: explicit cast from @ to % ?!?!? <aidan@salvador.blackstar.co.uk>
Re: How to match anything but some characters (reg-exp) (Tad McClellan)
HOWTO: create HTML tree of Perl documentation for Perl- <kevin.broadey@eds.com>
Re: newbie question (I.J. Garlick)
Re: newbie variable question... <Tony.Curtis+usenet@vcpc.univie.ac.at>
Re: Passowrds in scripts (was Re: Perl compiler) (Michael J Gebis)
Re: Perl and Play by Email games... <hauk@forumnett.no>
Re: Perl compiler (Michael J Gebis)
Perl Database ???? petersrm@my-dejanews.com
Re: Please help me convert MIME-characters - regex ques (Stefan Scholl)
Telnet daemon <sachinh@mbox5.singnet.com.sg>
Re: Unreadable Scripts? (Norman UNsoliciteds)
Re: Win32 and Perl <ernestogf@meta4.es>
Re: Y2K Date Support (Norman UNsoliciteds)
Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 28 Aug 1998 12:54:34 +0200
From: Hauk Langlo <hauk@forumnett.no>
Subject: A legal newbie question (I hope).
Message-Id: <35E68C6A.C360B4B7@forumnett.no>
I see people in this group are pretty fed up by people who do not read
the faqs, use the perlman etc, and I do not blame you for it. I must
admitt that I'm extremely fresh when it comes to the PC in general (been
into narrow fields on the Amiga only (Low level coding)), so I only know
the absolute basic parts of Perl at the moment. The thing is that I have
never used Unix and really do not know how to read the man files that
should follow the Perl package. I do not either know where the good faqs
are. If anyone could give me a little tip about how to read the man
files (I'm using NT and Perl is installed on another netwrked PC so I
guess I have to use something like Telnet), and maybe let me know a good
starting URL for absolute beginners, then at least one newbie will stop
posting irritating "What is chomp?" posts. Hope this question is fair
enough even if I fully understand that you probably shake your head from
side to side by my obvious lack of knowledge.
Regards Hauk Langlo
--
----------------------------------
Hauk Langlo
Hauk@forumnett.no
http://www.forumnett.no/~hauk
(+047) 93438940
----------------------------------
------------------------------
Date: Fri, 28 Aug 1998 10:13:51 +0100
From: "Daniel Adams" <dan@fearsome.net>
Subject: Re: CGI Form Refresh
Message-Id: <904295675.23912.0.nnrp-01.c2deb1c5@news.demon.co.uk>
I think this is probably something as simple as people have different
browsers settings. Some no doubt have "refresh on each page load" or similar
and others have "refresh each time I start my browser" or whatever.
Thats my guess but even if its completely wrong, this really isn't the right
forum to ask your question anyway, IMHO. Unless I'm very much mistaken this
doesn't relate specifically to Perl, and possibly not specifically even to
CGI.
--
Dan Adams
dan@fearsome.net
http://fearsome.net
Ashley Latham wrote in message <6s5r66$100e$1@news.net.uni-c.dk>...
>Hi,
>
>I have a form set up that calls a perl script. After data is entered the
>script checks the data, adds it to the database and returns a html page
>stating the data has been added or there was an error in the data entry.
>
>All this works fine.
>
>On some browsers when I hit the browser back button I can see the form with
>all the information I have entered as it was just before I hit the submit
>button. This is good in that if an error has been made with the data entry
>the entire form doesn't need to be re-entered, only the fields that are
>wrong. On other browsers when the browser back button the form is refreshed
>and reset to the initial empty fields.
>
>Can someone tell me if there is anyway to control this, or at least which
>browsers reset the form and which don't and why?
>
>Thanks, any help would be appreciated
>
>ashley
>
>
>
------------------------------
Date: Fri, 28 Aug 1998 22:20:17 +1000
From: David Coldrick <davidc@selectst.com>
Subject: Re: COBOL and Perl
Message-Id: <35E6A080.FEE38D2@selectst.com>
Charles,
I think you misunderstand what Perl is. I dismissed it as a pile of junk
a couple of years ago after seeing those weird leading characters ($ for
scalar, % for array, indeed!).
However, I picked up a book in Singapore by one of your countrymen, one
Nigel Chapman, that really blew me away (PERL The Programmer's Guide,
John Wiley and Son). It reveals to an experienced programmer how
valuable and how much *fun* it is to accomplish real programming tasks
in Perl. I've programmed in a lot of languages (including Cobol, PL/1,
etc.) and I've never enjoyed a more productive means of expression.
Highly recommend the book, and the language.
Best regards,
David
Charles F Hankel wrote:
>
> huntersean@hotmail.com wrote:
> >
> > In article <6rldhj$na5@lotho.delphi.com>,
> > paulr@bix.com (paulr) wrote:
> >
> > > On the other paw,
> > > I sure wouldn't use COBOL for a text scanning or SGML
> > > application. <grin>
> >
> > Neither would I. I wouldn't use COBOL for anything else, either. Neither do
> > the company I work for, nor any of the major banks here in London AFAIK.
>
> I think you should reconsider that last statement. A large number of
> the major banks use COBOL extensively in their systems, in my direct
> experience.
>
> > > If you have started into C, then go ahead into PERL.
> > > You will find COBOL is a very different world than either of
> > > those two languages, but a very rewarding one to learn.
> > > In fact, learning ANY programming language is a rewarding
> > > experience.
> >
> > Amen to that sentiment. Perhaps if you tried to learn something about perl
> > before posting you would not post such utter nonsense to the usenet.
>
> I have comparatively little experience of Perl but it seems to me that
> Perl relies extensively on additional libraries to gain any level of
> effectiveness, rather than just the pure language itself. It is also
> interpretive, which is not necessarily a desirable thing in a production
> environment.
>
> True, you may think that it's jolly good but it really doesn't match
> COBOL in some areas. I work on mainframe systems (you know, the ones
> that do a lot of boring work) and in this environment, COBOL is probably
> the leading language as such. We use utility software such as Selcopy
> and Easytrieve for the more mundane tasks such as data extraction and
> reporting.
>
> It would seem to me, so far, that Perl does little more than Selcopy can
> do and, as such, I'm not particularly impressed. One reason for lack of
> impression is that Selcopy is simply an easy-to-use tool and yet Perl is
> touted as a language.
> So what makes Perl a language and Selcopy a utility? I would guess that
> it's the environments and the different ways that we view things. Or
> could it be that Perl is promoted as a language, while Selcopy is sold
> as a "multiple information retrieval" utility? As far as I can tell,
> though, there is little difference between the two in functional terms
> other than the documentation. My Selcopy manual has 242 concise pages
> and is easy to use; my Perl 5 book has 938 verbose pages, and finding
> useful things can take a while when wading through the dross.
>
> You are wrong to slag off COBOL. It is neither better nor worse than
> Perl, and it is an argument that you will never win; the contextual
> arguments will see to that.
>
> --
> Charles F Hankel Wirral UK
> ------------------------------
> Ready, Willing and (avail)Able
------------------------------
Date: Fri, 28 Aug 1998 22:23:20 +1000
From: David Coldrick <davidc@selectst.com>
Subject: Re: COBOL and Perl
Message-Id: <35E6A137.F775CC3E@selectst.com>
You should have said "heritage system", Gary :-)
Regards,
David
Gary L. Burnore wrote:
<snip>
> It's comparing apples to oranges. I've heard for nearly 15 years that COBOL
> is a dying language. It'll be here for a long time to come as it works and
> it's easy to learn and some places refuse to give it up. At one bank, I made
> the mistake of referring to one of the COBOL based databases as a legacy
> system. I only said it once.
> --
> I DO NOT WISH TO RECEIVE EMAIL IN REGARD TO USENET POSTS
> ---------------------------------------------------------------------------
> How you look depends on where you go.
> ---------------------------------------------------------------------------
> Gary L. Burnore | ][3:]3^3:]33][:]3^3:]3]3^3:]3]][3
> | ][3:]3^3:]33][:]3^3:]3]3^3:]3]][3
> DOH! | ][3:]3^3:]33][:]3^3:]3]3^3:]3]][3
> | ][3 3 4 1 4 2 ]3^3 6 9 0 6 9 ][3
> Special Sig for perl groups. | Official Proof of Purchase
> ===========================================================================
------------------------------
Date: 28 Aug 1998 06:05:44 GMT
From: gebis@fee.ecn.purdue.edu (Michael J Gebis)
Subject: Re: comp.lang.perl.windows.misc
Message-Id: <6s5hbo$q3a@mozo.cc.purdue.edu>
lr@hpl.hp.com (Larry Rosler) writes:
}In article <6s49qq$j0f$2@info.uah.edu> on 27 Aug 1998 18:51:06 GMT, Greg
}Bacon <gbacon@itsc.uah.edu> says...
}> In article <6s20td$srj@mozo.cc.purdue.edu>,
}> gebis@fee.ecn.purdue.edu (Michael J Gebis) writes:
}> : gbacon@cs.uah.edu (Greg Bacon) writes:
}> : }Please provide evidence for the claim that people who post from the
}> : }.edu TLD are rude and clueless.
}> :
}> : The "September" part of Abigail's attribution line.
}>
}> That's a reference to the flood of discurteous freshmen every September.
}> Most of the freshmen usually learn better or get lost by the end of
}> September. Win32 users have had several years. What's the difference?
}IIRC, that September 1993 date refers to the introduction of a Web
}browser on Windows 3.1 systems, providing ready access to the Web (and
}ultimately to Usenet) for the unwashed (or at any rate, un-lynx-ed and
}un-mosaic-ed) hordes of non-Unix folks. Nothing specific about .edu
}there -- they used Apple anyway :-)
Of course only Abigail can specify the true reason for that particular
date, but my recollection was that:
September = skool starts
1993 = AOL offers usenet gateway
Anyway, I suspect that if I'm wrong I'll soon hear about it.
--
Mike Gebis gebis@ecn.purdue.edu mgebis@eternal.net
------------------------------
Date: Fri, 28 Aug 1998 11:56:07 +0100
From: Andrew MacInnes <a.g.macinnes@rl.ac.uk>
Subject: Re: even or odd
Message-Id: <35E68CC7.B80EA336@rl.ac.uk>
Andy Lee wrote:
> Hi,
>
> I need some help to write a script to print out the even number.
> This is what I am trying to do. Read a file and print out only the even
> number
> records. I don't know how to test the number for even or odd. Thanks..
>
> #!/usr/bin/perl
> open (file,"phone.dat")
> while (<file>)
> {
> #Test for even number
> #print only the even number record
> }
> close (file)
>
> AndyL
$temp = $your_number % 2; # MOD
if ($temp == 0)
{
print $temp;
}
You should also use -w.
Hope this helps
Andrew MacInnes
- RAL, DCI, E-mail:A.G.MacInnes@rl.ac.uk -
- R27 - F31 Telephone (direct): (01235)44610 -
- Chilton, Didcot Telephone (Mobile): 07775 943273 -
- Oxon, OX11 0QX http://www.dci.rl.ac.uk -
------------------------------
Date: 28 Aug 1998 11:24:20 GMT
From: "K.Posern" <posern@informatik.uni-marburg.de>
Subject: explicit cast from @ to % ?!?!?
Message-Id: <35E69320.172F5AFB@informatik.uni-marburg.de>
Look at this: >>>>>>
@iniFile=("Common", "xxx", "bla", "yyy", "blub", "zzz");
%iniFile = @iniFile;
print "\n", %iniFile, "\n";
print "\nvalues:\n";
foreach(values %iniFile) { print " -->$_<-- "; }
print "\nkeys:\n";
foreach (keys %iniFile) { print " -->$_<-- "; }
<<<<<
WHY is the order of the keys (or values): "Common, blub, bla"
and NOT: "Common, bla, blub" - like I would have expected it?!
Bye.
Knuth.
------------------------------
Date: Fri, 28 Aug 1998 12:00:23 GMT
From: maurice@hevanet.com (Maurice Aubrey)
Subject: Re: explicit cast from @ to % ?!?!?
Message-Id: <slrn6ud6up.452.maurice@we-24-130-48-83.we.mediaone.net>
On 28 Aug 1998 11:24:20 GMT, K.Posern <posern@informatik.uni-marburg.de> wrote:
>Look at this: >>>>>>
>
>@iniFile=("Common", "xxx", "bla", "yyy", "blub", "zzz");
>%iniFile = @iniFile;
>
>print "\n", %iniFile, "\n";
>
>print "\nvalues:\n";
>foreach(values %iniFile) { print " -->$_<-- "; }
>print "\nkeys:\n";
>foreach (keys %iniFile) { print " -->$_<-- "; }
>
><<<<<
>
>WHY is the order of the keys (or values): "Common, blub, bla"
>
>and NOT: "Common, bla, blub" - like I would have expected it?!
BECAUSE, you expect wrong:
perldoc -f keys
...
The keys are returned in
an apparently random order, but it is the same order as
either the values() or each() function produces (given that
the hash has not been modified).
...
You may be interested in the Tie::IxHash module.
--
Maurice Aubrey <maurice@hevanet.com>
The worst thing that can happen to a good cause is, not to be
skillfully attacked, but to be ineptly defended.
- Frederic Bastiat
------------------------------
Date: Fri, 28 Aug 1998 12:03:36 GMT
From: Aidan Rogers <aidan@salvador.blackstar.co.uk>
Subject: Re: explicit cast from @ to % ?!?!?
Message-Id: <904309396.998464@sparc.tibus.net>
> WHY is the order of the keys (or values): "Common, blub, bla"
> and NOT: "Common, bla, blub" - like I would have expected it?!
While not professig to be anything close to expert in these matters, I
believe it has something to do with the way hashes are stored. Just
because you assign to the hash in a particular order, does not mean you
will get the values back in the same order using either the keys or values
commands.
Hope this helps,
Aidan
------------------------------
Date: Thu, 27 Aug 1998 23:19:40 -0500
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: How to match anything but some characters (reg-exp)
Message-Id: <s4b5s6.tk5.ln@metronet.com>
Hauk Langlo (hauk@forumnett.no) wrote:
: Dan Nguyen wrote:
: > [^a-z0-9\-] //that's all I'm giving you.
^
^
: The ^ was all I needed.
And Dan gave you one more character than is actually needed ;-)
The hyphen is not "special" if it is the last (or first) character
in the class.
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: Fri, 28 Aug 1998 12:31:56 +0100
From: "Kevin Broadey" <kevin.broadey@eds.com>
Subject: HOWTO: create HTML tree of Perl documentation for Perl-5.004
Message-Id: <6s6460$rmm$1@news.ses.cio.eds.com>
The FAQ isn't very helpful on this one. It says I should cd to the
directory containing the POD files and run "pod2html" there, then look at
the "perl.html" file there. But perldelta says that pod2html is all-new,
and as far as I can tell it doesn't work in this way any more!
What I'd like to do is create an HTML tree in a different directory to the
/usr/local/lib/perl5 tree which contains all the documentation from the
standard distribution PLUS all the documentation for the extras I've
installed in the site-perl directory. It needs to be in a different
directory so I can put it under my web servers DOCROOT directory.
Anyone got a handy script to do this?
aTdHvAaNnKcSe
Kevin
Please email responses (as well as posting) in case I miss them.
------------------------------
Date: Fri, 28 Aug 1998 09:03:39 GMT
From: ijg@csc.liv.ac.uk (I.J. Garlick)
Subject: Re: newbie question
Message-Id: <EyE6I4.I7z@csc.liv.ac.uk>
In article <x3ypvdmo3uj.fsf@tigre.matrox.com>,
Ala Qumsieh <aqumsieh@tigre.matrox.com> writes:
>
> You don't need to learn the WHOLE language to do something
> useful. From all the Perl users in the world, I would estimate that
> 0.000000000000000001% of them know the *WHOLE* language; the rest just know
> "enough"! Maybe you should read some more about Perl or else you would
> develop many an enemy around this newgroup!
>
This really did amuse me.
So you are saying that the population of the world is (hold on this will need
some space)
100,000,000,000,000,000,000 or 100 billion billion
(based on the assumption that only Larry knows the WHOLE of Perl.) If we add
Tom, Randal, Nathan and a few others the number will grow.
My question is where are they all hiding?
I do agree though he does need to do a little bit more reading.
--
--
Ian J. Garlick (JAPN)
ijg@csc.liv.ac.uk
Toilet Toupee, n.:
Any shag carpet that causes the lid to become top-heavy, thus
creating endless annoyance to male users.
-- Rich Hall, "Sniglets"
------------------------------
Date: 28 Aug 1998 11:10:16 +0200
From: Tony Curtis <Tony.Curtis+usenet@vcpc.univie.ac.at>
Subject: Re: newbie variable question...
Message-Id: <7xg1ehxyiv.fsf@salome.vcpc.univie.ac.at>
Re: newbie variable question..., Misagh <pepstud@nortel.ca>
said:
Misagh> $test = "/home/users/me/cool";
Misagh> Is there a way I can strip away all the text except
Misagh> the 'me' part? I mean, I want 'me' to be variable,
Misagh> but I don't want all the other directories with
Misagh> it.
[untested]
use File::Basename;
$what_you_want = basename dirname $test;
hth
tony
--
Tony Curtis, Systems Manager, VCPC, | Tel +43 1 310 93 96 - 12; Fax - 13
Liechtensteinstrasse 22, A-1090 Wien, | <URI:http://www.vcpc.univie.ac.at/>
"You see? You see? Your stupid minds! | private email:
Stupid! Stupid!" ~ Eros, Plan9 fOS.| <URI:mailto:tony_curtis32@hotmail.com>
------------------------------
Date: 28 Aug 1998 06:11:17 GMT
From: gebis@fee.ecn.purdue.edu (Michael J Gebis)
Subject: Re: Passowrds in scripts (was Re: Perl compiler)
Message-Id: <6s5hm5$q49@mozo.cc.purdue.edu>
? the platypus {aka David Formosa} <dformosa@st.nepean.uws.edu.au> writes:
}In <m3vhnft4eu.fsf@windlord.Stanford.EDU> Russ Allbery <rra@stanford.edu> writes:
}[...]
}>Oh, sure. Like I said, I mostly agree with you. It's just that there
}>*are* cases where one has to do the moral equivalent.
}More a unix question then a perl one (but related to the current thread
}and perl as well). If a setuid script (or wrapper) dumps core will the
}user get a copy of the core file?
You didn't hear it from me, but this is one way to get password files
from a machine using shadow passwords.
--
Mike Gebis gebis@ecn.purdue.edu mgebis@eternal.net
------------------------------
Date: Fri, 28 Aug 1998 12:40:30 +0200
From: Hauk Langlo <hauk@forumnett.no>
To: Adam Spragg <spragg@table.jps.net>
Subject: Re: Perl and Play by Email games...
Message-Id: <35E6891D.4C8C8101@forumnett.no>
> A while ago, my chums and I played a Play By Email game (PBEM).
> Essentially, each player in the game emailed a weeks worth of "turns" to
> the guy running the game. He'd then send back the "results." In this
> case, the setting was a fantasy type city, with an arena in the middle.
> You could do turns like "moveto 6,6" and "explore", which would move to a
> city block, and find neat things to do in that block. For instance, if
> there was a shop there, you could, on a subsequent turn, "moveto 6,6" and
> "buy something cool". And there was combat (you specified your own
> fighting tactics with percents (dodge 25%, attack 50%, parry 25%, flee if
> life less than 10HP, etc). And so on.
>
> You get the idea.
>
> It seemed to me that Perl might be a fun language to try to attempt
> something like this. Here's what I think would need to happen. There
> would need to be some sort of "world". There would need to be some sort
> of automatic process of reading in a (formatted correctly) emailed "turn"
> into the "world", and getting automatic results back. For instance, if
> the turn said "go to this spot", the world would respond back with a
> paragraph about what is found at the spot. A collection of these sorts of
> paragraphs would be returned to the user. And the world would have to be
> able to be modified, and then saved in anticipation of the next turn.
Seems like you have a fair idea to play around with there. However, would it
not be equally good if you dropped the whole E-mail consept and used forms on
password protected CGI web pages instead? Just an idea.
Hauk
--
----------------------------------
Hauk Langlo
Hauk@forumnett.no
http://www.forumnett.no/~hauk
(+047) 93438940
----------------------------------
------------------------------
Date: 28 Aug 1998 06:09:05 GMT
From: gebis@fee.ecn.purdue.edu (Michael J Gebis)
Subject: Re: Perl compiler
Message-Id: <6s5hi1$q3n@mozo.cc.purdue.edu>
Peter A Fein <p-fein@uchicago.edu> writes:
}stanley@skyking.OCE.ORST.EDU (John Stanley) writes:
}> In article <opgr9y2dphv.fsf@harper.uchicago.edu>,
}> Peter A Fein <p-fein@uchicago.edu> wrote:
}> >stanley@skyking.OCE.ORST.EDU (John Stanley) writes:
}> >What you could really use here is ssh.
}>
}> Sigh. No, what I really can't use here is ssh. If I could use ssh for
}> any of the examples I presented, I would be using it already. Unfortunately,
}> ssh requires 1) a network connection and 2) a server at the other end,
}> neither of which is true in example 2 (tides), and the latter is not
}> true for the other two examples.
}I thought you were logging in to a server to grab log files. Oh well.
There are several different ways to interpret "server."
--
Mike Gebis gebis@ecn.purdue.edu mgebis@eternal.net
------------------------------
Date: Fri, 28 Aug 1998 11:02:21 GMT
From: petersrm@my-dejanews.com
Subject: Perl Database ????
Message-Id: <6s62nt$rh$1@nnrp1.dejanews.com>
I am working on a web site that I will need to use a database with, and I am
looking for an easy was to do this. My ISP has perl5db.pl and AnyDBM_file.pm
available for me to use. I have not used these, and I am wondering if anyone
as any examples of how to use these and what they can do. I do have a flat
file that I can use, but it has about 17,000 records in it, and I need to
display the results in a sorted order. If any one has any help, please send
help. Thanks.
- Ryan Peters
rmpeters@windsorgroup.com
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: 28 Aug 1998 09:57:05 GMT
From: stesch@parsec.inka.de (Stefan Scholl)
Subject: Re: Please help me convert MIME-characters - regex question in fact
Message-Id: <slrn6ucvnh.gn3.stesch@parsec.inka.de>
On 27 Aug 1998 07:45:09 GMT, Jan Ferri <Jan.Ferre@uni-c.dk> wrote:
> I try to convert some MIME-characters to something reasonably decent, but
> utterly fails.
> $line="Ple=61se=20H=65lp=20=4De"; # well constructed example
> Has anyone got a good idea?
use MIME::QuotedPrint;
$encoded = encode_qp($decoded);
$decoded = decode_qp($encoded);
------------------------------
Date: Fri, 28 Aug 1998 18:56:46 +0800
From: "Sachin Hamirwasia" <sachinh@mbox5.singnet.com.sg>
Subject: Telnet daemon
Message-Id: <6s62nu$goc$1@news.ntu.edu.sg>
Hi All,
I want to have in my Apache server (I don't have full server access, only
CGI) a facility to allow people to use their telnet programs (eg. telnet.exe
in DOS/Win) to log into a discussion group and post/read messages. I need
help in making this script in PERL.
Please help me by throwing some light into this issue. Please reply by
email.
Thanks ( in advance) for any help.
Sachin Hamirwasia
(Email: sachinh@singnet.com.sg)
------------------------------
Date: Fri, 28 Aug 1998 18:07:27 +0900
From: No.unsoiliciteds@dead.end (Norman UNsoliciteds)
Subject: Re: Unreadable Scripts?
Message-Id: <No.unsoiliciteds-2808981807270001@cs11n47.ppp.infoweb.or.jp>
> Norman UNsoliciteds:
> : Oh puuuuuhhhleeeeeze I bet you knew all these things before you came on
> : Use Net, I never seen such a bunch of BOFs (and this doesn't mean birds
> : of a feather) trying to pretend they were never kids.
Nathan V. Patwardhan:
<*> Someone yelled at me early on.
What and you still smarting from it and want to get your own back?
<*> Somehow you misunderstand sarcasm.
No I undestand sarcsm very well, it's the second lowest form of wit used by the
^^^^^^
second most trivial of individuals, the most trivial are those who think typos
^^^
are intelligence tests.
--
A true fool is a man that knows no fear and has no faults
------------------------------
Date: Fri, 28 Aug 1998 11:50:59 +0200
From: "Ernesto Guisado" <ernestogf@meta4.es>
Subject: Re: Win32 and Perl
Message-Id: <6s5uid$h38$1@talia.mad.ibernet.es>
stevel wrote in message ...
>applications such as Excel through the OLE package on Perl. What about
>pulling up things such as dialog boxes, file browsers, etc for interactive
>use in scripts? Is it possible to do this? If so, could someone point me
>towards an online guide as to how to do this (with examples?)
In Visual Basic and brethren you can use the SendKeys function. Some time
ago Al Williams published a Delphi version in Dr. Dobb's
(http://www.ddj.com/ddj/1997/careers1/wil2.htm). I ported it to C and
packaged it using h2xs...
The tentative name for this module is Win32::Test (after the name of the
most probable use for this kind of function):
use Win32::Test;
use Win32::Process;
use Win32::WinError;
sub ErrorReport{ print Win32::GetLastError(); }
# Open Excel
Win32::Process::Create($ProcessObj,
"C:\\Program Files\\Microsoft Office\\Office\\EXCEL.EXE",
"",
0,
NORMAL_PRIORITY_CLASS,
".") or die ErrorReport();
# Wait during startup...
$ProcessObj->Wait(10000);
# ALT-f, n should create a new file in the English version of Excel
Win32::Test::SendKeys("%fn~");
#Wait some more
$ProcessObj->Wait(5000);
# Insert some stuff into the spreadsheet
Win32::Test::SendKeys("a{TAB}b{TAB}~");
# Wait until somebody closes Excel
$ProcessObj->Wait(INFINITE);
If you want to know the exact format of the string you pass to Sendkeys, a)
see the VB docs b) see the Al Williams article noted above.
If anybody is interested I'll post the module.
Regards,
Ernesto.
------------------------------
Date: Fri, 28 Aug 1998 21:25:45 +0900
From: No.unsoiliciteds@dead.end (Norman UNsoliciteds)
Subject: Re: Y2K Date Support
Message-Id: <No.unsoiliciteds-2808982125460001@cs11k35.ppp.infoweb.or.jp>
In article <6s59lr$1kf$1@marina.cinenet.net>, cberry@cinenet.net (Craig
Berry) wrote:
> As a result of sloppy math and historical research by Dennis
> the Little, our calendar has no year zero,
so what happened 1,998 years ago? why are we counting from such a
relatively recent date and not from the dawn of the eistence of the earth?
Granted the _exact_ dates of the death (and birth for that matter) of
Christ is none are lost somewhere between the heresay of what went into
writing the bible several hundreds of years after the events it describes,
and the addtional months added by the roman emperors to the callendar and
the decision to revise the callendar in the middle ages however a zero
year there is (appromimateit may be).
> Nuclear energy, harnessed properly, is as safe a technology as we've ever
> had for power production.
If it was used exlcusively for producing energy you'd be right, but much
in the same way firing monkeys into space was a way of getting spy
sattelites into orbit, nuclear power is used for the production of nuclear
weapons, which I think you'll agree are _not_ terribly safe things to have
Not that this information will change the question of Perl being Y2K or not
--
The Dinosaurs were so stupid, they couldn't
even devise the means of thier own extinction,
they had to wait for Nature to do it for them.
------------------------------
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 3572
**************************************