[13083] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 493 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Aug 12 22:07:18 1999

Date: Thu, 12 Aug 1999 19:05:09 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Thu, 12 Aug 1999     Volume: 9 Number: 493

Today's topics:
        HELP apache,perl and win98  (joe lee)
    Re: HELP apache,perl and win98 <ljp@209.204.251.8>
        Help Needed - Perl & SQL <intrport@pacbell.net>
    Re: is our reese the author of mysql book? (Daniel S. Lewart)
    Re: Looking for a good Perl Book (Abigail)
    Re: Looking for a good Perl Book <tchrist@mox.perl.com>
    Re: Member of an array (Donovan Rebbechi)
    Re: Member of an array (Abigail)
        Need help - Will pay. (BigDoggy)
    Re: New Book on Perl Tool Development (Abigail)
    Re: OFF: Opinions on Magazines <propart@mediaone.net>
    Re: perl -splice - add an element/delete (Abigail)
    Re: perl on linux (Abigail)
    Re: perl on linux <tchrist@mox.perl.com>
    Re: Review for Algo. in Perl (Abigail)
    Re: searching complex data structure (Abigail)
    Re: String Matching html with indents (Larry Rosler)
    Re: Tom Christiansen "Perl Cookbook" (-Sneex-)
        Vanishing Windows <UniversalExport@email.msn.com>
    Re: Vanishing Windows <revjack@radix.net>
    Re: while loop teminates too early (Abigail)
        Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Mon, 09 Aug 1999 23:08:54 GMT
From: REMOVjoelee@softhome.net (joe lee)
Subject: HELP apache,perl and win98 
Message-Id: <37af5edc.4227824@news.thefree.net>

Hi all

complete beginner, please excuse my lack of know how.

i've been trying to install apache/activestate perl
to start learning about cgi from the file at :
http://www.egovision.com/htmlresources/articles/apache_win32.html

however i can't seem to get the thing to work !

ive followed it word for word and can execute the perl interpreter
successfully with a script from the prompt
(i.e perl C:\apache\cgi-bin\test.pl)
, but can't seem to print it out to a html page. everytime i do try
it runs a window and flashes by me in a window ?!?! 

my html to execute the script is :

+++++++++++++++++++++++++++++++++++
<html>
<a href=test.pl>go tester</A>
</html>
+++++++++++++++++++++++++++++++++++

and the actual script is

+++++++++++++++++++++++++++++++++++
#!C:/apache/usr/bin/perl.exe

$time=localtime(time);

print "Content-type: text/html\n\n";

print<<'end_of_block';
<HTML><HEAD><TITLE>My First CGI Program</TITLE></HEAD>
<BODY BGCOLOR="#FFFFFF">
<CENTER><H1>My First CGI Program</H1><CENTER>
<P>
Your host is: $ENV{'REMOTE_HOST'};
<BR>
The time is: $time
<P>
This is the end of the program.  Like I said, not very useful
but we will be getting to the useful programs soon!
</BODY></HTML>
end_of_block
+++++++++++++++++++++++++++++++++++

what am i doing wrong ?
am i completely missing something vitally important ? 
in the above file i mentioned i couldn't get the "perl" to appear
in the top name bar. is this of significance ?
also while im on the subject can anyone recommend any more good
beginners tutorial's ? ive searched the engines but personal
recommendations gladly appreciated. 
-----------------------------------
Joe Lee - Bromley, Kent
please delete the REMOV from the addy to respond
joelee@softhome.netREMOV


------------------------------

Date: 12 Aug 1999 19:41:34 -0600
From: ljp <ljp@209.204.251.8>
Subject: Re: HELP apache,perl and win98
Message-Id: <so5omp81.fsf@wind.localdomain>

>+++++++++++++++++++++++++++++++++++
><html>
><a href=test.pl>go tester</A>
></html>

should this be correct?
<a href="/cgi-bin/test.pl">go tester</A>
        ^^^^^^^^^        ^

 



------------------------------

Date: Thu, 12 Aug 1999 18:12:50 -0700
From: "Intraport Inc" <intrport@pacbell.net>
Subject: Help Needed - Perl & SQL
Message-Id: <yjKs3.1092$Sg.64009@typhoon-sf.snfc21.pbi.net>

I am looking for someone who understands both PERL , SQL, and SQL Server 6.5
really well to give me a call.  I am having problems displaying text pages
as the SQL wants to cut the data off at 256 bytes or characters of data.
Microsoft says that you can display up to 2 gigs of data.  I want to display
pages of information up to 20,000 bytes or characters of maximum.  I am
looking for a script to help me display all of the text I need for the
people that will be using my website.

I look forward to your reply.

Thanks, and have a nice day.

Neil Khanna
V: (408) 448-6474





------------------------------

Date: 13 Aug 1999 01:05:57 GMT
From: d-lewart@uiuc.edu (Daniel S. Lewart)
Subject: Re: is our reese the author of mysql book?
Message-Id: <7ovr1l$9jd$1@vixen.cso.uiuc.edu>

Elaine -HFB- Ashton <elaine@chaos.wustl.edu> writes:

> Scott Oglesby wrote:
> > Perhaps you haven't visited http://www.mattwright.com/ ...
> > (yes, it is _the_ Matt Wright)
> and japhy made his fan page! LOL. I wonder if he attends the
> champaign-urbana perl mongers meetings....

Not yet.  However, we would welcome the prodigal child,
although he would have to pay for his own pizza.

I will not taunt -HFB-,
Daniel Lewart
Champaign-Urbana Perl Mongers Fearless Leader
http://cmi.pm.org/


------------------------------

Date: 12 Aug 1999 20:10:02 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Looking for a good Perl Book
Message-Id: <slrn7r6s2n.e7v.abigail@alexandra.delanet.com>

Kenneth Bandes (kbandes@home.com) wrote on MMCLXXII September MCMXCIII in
<URL:news:37B2E6F3.676F1A04@home.com>:
@@ Abigail wrote:
@@ 
@@ > We all whine about the people asking question here that are found in the
@@ > faq, or the manual. But sometimes we should realize it isn't easy to
@@ > find things.
@@ 
@@ Yes!!!  Thank you!!!  All knowledge is contained in the on-line docs, but the
@@ not necessarily well-indexed, nor necessarily very clear when the right topic
@@ found.  For that matter, all questions could be answered by reading the sourc
@@ which is freely available, but we would hardly be justified in saying "go rea
@@ source code, and if you haven't found the answer, come back and ask again."
@@ 
@@ I don't understand the sport of flaming newbies, personally.  If a message sa
@@ "newbie" in the subject, filter it out, ignore it, or answer it, but why tort
@@ poor sucker who posted it, even if in the long run s/he could have found the 
@@ by plowing through the docs?


I *do* answer questions that are in the documentation, but hard to find.
The things that are hard to find are usually the more advance features.
I gave an example about INIT, which is documented at an unlikely place.

When was the last time you saw someone asking a question here about INIT?

People are being flamed because they don't even look at the most obvious
place for the answer. 



Abigail
-- 
perl5.004 -wMMath::BigInt -e'$^V=Math::BigInt->new(qq]$^F$^W783$[$%9889$^F47]
 .qq]$|88768$^W596577669$%$^W5$^F3364$[$^W$^F$|838747$[8889739$%$|$^F673$%$^W]
 .qq]98$^F76777$=56]);$^U=substr($]=>$|=>5)*(q.25..($^W=@^V))=>do{print+chr$^V
%$^U;$^V/=$^U}while$^V!=$^W'


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: 12 Aug 1999 19:32:08 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Looking for a good Perl Book
Message-Id: <37b37598@cs.colorado.edu>

     [courtesy cc of this posting mailed to cited author]

In comp.lang.perl.misc, 
    abigail@delanet.com writes:
:I gave an example about INIT, which is documented at an unlikely place.

FYI, there are more INITs in more recent pod releases, because 
this bothered me, too.

% grep -w INIT *.pod
perl5005delta.pod:have very little impact on compatibility.  See L<New C<INIT> keyword>,
perl5005delta.pod:=head2 New C<INIT> keyword
perl5005delta.pod:C<INIT> subs are like C<BEGIN> and C<END>, but they get run just before
perl5005delta.pod:C<INIT> blocks to initialize and resolve pointers to XSUBs.
perlfunc.pod:the C<eval ''>, C<BEGIN {}>, C<END {}>, and C<INIT {}> constructs.
perlmod.pod:constructors and destructors.  These are the C<BEGIN>, C<INIT>, and
perlmod.pod:Similar to C<BEGIN> blocks, C<INIT> blocks are run just before the
perlmod.pod:documented in L<perlcc> make use of C<INIT> blocks to initialize
perlrun.pod:your program.  C<INIT> blocks, however, will be skipped.
perlsub.pod:C<INIT> to this list.
perlsub.pod:special triggered functions, C<BEGIN> and C<INIT>.
perltoc.pod:=item The INIT: Keyword
perlxs.pod:=head2 The INIT: Keyword
perlxs.pod:The INIT: keyword allows initialization to be inserted into the XSUB before
perlxs.pod:       INIT:
perlxs.pod:       INIT:
perlxs.pod:C preprocessor directives are allowed within BOOT:, PREINIT: INIT:,
-- 
 "I refuse to have a battle of wits with an unarmed person."


------------------------------

Date: 12 Aug 1999 21:15:24 -0400
From: elflord@news.newsguy.com (Donovan Rebbechi)
Subject: Re: Member of an array
Message-Id: <slrn7r6sdc.npn.elflord@panix3.panix.com>

On Thu, 12 Aug 1999 19:04:21 -0400, Jeff Pinyan wrote:
>[posted & mailed]
 
>> foreach my $item(@array) { return 1 if $item eq $fred; }
>> return 0;
>
>That is slow and silly.  Smarter:

[ snip ]

Your one involves copying the entire array to a hash, which is also slow.

If speed is critical, you are better off using a hash in the first place.

-- 
Donovan


------------------------------

Date: 12 Aug 1999 20:31:14 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Member of an array
Message-Id: <slrn7r6taf.e7v.abigail@alexandra.delanet.com>

Phil Goetz (goetz@cse.buffalo.edu) wrote on MMCLXXII September MCMXCIII
in <URL:news:7ov365$kko$1@prometheus.acsu.buffalo.edu>:
,, I've gone through my Perl manual without finding a built-in
,, method to ask whether a variable is a member of an array.
,, E.g.,  I want to know if "fred" is in the array
,, 
,, @foo = split(/:/, "hi:there:fred:flintstone");
,, 
,, Is there such a method?


Yes, but what is the best depends.

For a small number of queries, use grep. (How could you miss that?)
For larger number of queries, you want to preprocess your data, as
the FAQ will explain to you.



Abigail
-- 
perl -e '* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
         / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / 
         % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %;
         BEGIN {% % = ($ _ = " " => print "Just Another Perl Hacker\n")}'


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: Thu, 12 Aug 1999 18:22:52 -0000
From: see@signature.com (BigDoggy)
Subject: Need help - Will pay.
Message-Id: <MPG.121d2156bc3021219896a1@news.dsp.net>

I know this isn't directly related, but I'm getting mildly desperate.

I've been trying for two weeks to get a shopping cart system installed and 
running and am having no luck.  My hope is to find an expert to get things 
working and show me enough that I can take it from there.

The program I'm trying to get configured and installed is Perlshop.cgi, 
available as shareware, but having more of the features I need than most of 
the commercial products I've investigated.

The server I'm trying to run this on is an NT Server running IIS 4.0 with 
ActivePerl.

I'm located in Campbell, CA and have documentation on how to set up Perlshop, 
which I have read and re-read diligently, but I haven't had any success.  If 
you are willing to help, please contact me at BigDoggy@MakersMall.com.  

FWIW - I'd really like to have the shopping cart up and running by 8/15.

Thanks
-- 
Brian Wagner
BigDoggy at MakersMall.com
Change the "at" to @ to reach me


------------------------------

Date: 12 Aug 1999 20:39:46 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: New Book on Perl Tool Development
Message-Id: <slrn7r6tqf.e7v.abigail@alexandra.delanet.com>

David Cassell (cassell@mail.cor.epa.gov) wrote on MMCLXXII September
MCMXCIII in <URL:news:37B33925.CDFAF66F@mail.cor.epa.gov>:
!! 
!! Paul Ziff, in his writings on the philosophy of language,
!! used as an example the street on which he grew up:
!!     Old Eagle School Road
!! 
!! Exercise for the reader: parse as above.  :-)


*ponder*  There's an 'Old Eagle School Road' here in Wayne, PA, but
I'm not sure what you are getting at. Or is it the uncertaincy which
noun "Old" refers to?



Abigail
-- 
perl -MTime::JulianDay -lwe'@r=reverse(M=>(0)x99=>CM=>(0)x399=>D=>(0)x99=>CD=>(
0)x299=>C=>(0)x9=>XC=>(0)x39=>L=>(0)x9=>XL=>(0)x29=>X=>IX=>0=>0=>0=>V=>IV=>0=>0
=>I=>$r=-2449231+gm_julian_day+time);do{until($r<$#r){$_.=$r[$#r];$r-=$#r}for(;
!$r[--$#r];){}}while$r;$,="\x20";print+$_=>September=>MCMXCIII=>()'


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: Thu, 12 Aug 1999 21:29:58 -0400
From: PropART <propart@mediaone.net>
Subject: Re: OFF: Opinions on Magazines
Message-Id: <37B37516.6DCC3EEC@mediaone.net>

A great freebie: Web Techniques (http://www.webtechniques.com). Columns by
Randal Schwartz and Lincoln Stein.

A good NT freebie: Windows NT Systems

Wm C.



------------------------------

Date: 12 Aug 1999 20:13:46 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: perl -splice - add an element/delete
Message-Id: <slrn7r6s9o.e7v.abigail@alexandra.delanet.com>

jatgirl@yahoo.com (jatgirl@yahoo.com) wrote on MMCLXXII September
MCMXCIII in <URL:news:7ouvb2$des$1@nnrp1.deja.com>:
() My bad that I started another thread with in a thread :) oh well.
() anyways, I'm very much thankful to the folks who kindly & intelligently
() replied to my post. Your help was greatly appreciated.

And this is the second poor netiquette posting: Jeopardy style posting,
with the reply before the response. On top of that, random newlines are
introduced in the reply, and the entire sig and advertisement are quoted.

That's 2 out of 2. You're out.

*ploink*



Abigail
-- 
perl -we 'print split /(?=(.*))/s => "Just another Perl Hacker\n";'


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: 12 Aug 1999 20:46:48 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: perl on linux
Message-Id: <slrn7r6u7l.e7v.abigail@alexandra.delanet.com>

Ala Qumsieh (aqumsieh@matrox.com) wrote on MMCLXXI September MCMXCIII in
<URL:news:x3ywvv29qy5.fsf@tigre.matrox.com>:
,, 
,, Haven't heard of the -p and -n flags? or even the -i flag?
,, 
,, 	% perl -pi -e 's/\cM//g' oldscript.pl > fixedscript.pl

Well, you may have heard of the -i flag, but do you know what it does?

I would use either:

   	% perl -pi -e 's/\cM//g' oldscript.pl

or

   	% perl -p  -e 's/\cM//g' oldscript.pl > fixedscript.pl


And I would use a shell where the default prompt is `$', but that's
beside the point.



Abigail
-- 
sub _'_{$_'_=~s/$a/$_/}map{$$_=$Z++}Y,a..z,A..X;*{($_::_=sprintf+q=%X==>"$A$Y".
"$b$r$T$u")=~s~0~O~g;map+_::_,U=>T=>L=>$Z;$_::_}=*_;sub _{print+/.*::(.*)/s}
*_'_=*{chr($b*$e)};*__=*{chr(1<<$e)};
_::_(r(e(k(c(a(H(__(l(r(e(P(__(r(e(h(t(o(n(a(__(t(us(J())))))))))))))))))))))))


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: 12 Aug 1999 19:56:20 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: perl on linux
Message-Id: <37b37b44@cs.colorado.edu>

     [courtesy cc of this posting mailed to cited author]

In comp.lang.perl.misc, 
    abigail@delanet.com writes:
:   	% perl -p  -e 's/\cM//g' oldscript.pl > fixedscript.pl
:And I would use a shell where the default prompt is `$', but that's
:beside the point.

I tend to use a % to indicate the shell because perl code already has
plenty of $ to go around.

--tom
-- 
pi seconds is a nanocentury.
                --Tom Duff


------------------------------

Date: 12 Aug 1999 20:20:02 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Review for Algo. in Perl
Message-Id: <slrn7r6slf.e7v.abigail@alexandra.delanet.com>

senthilr@email.com (senthilr@email.com) wrote on MMCLXXII September
MCMXCIII in <URL:news:7ov9v2$lb2$1@nnrp1.deja.com>:
;; 
;; Is anyone reviewing the new book
;; "Algorithms in Perl.."


Why is this posted in the thread "Newbie seeking for advice"?  You don't
followup to any of the postings in the thread, nor do you contribute
even in the slightest way. Yet, you copy the References line.

That's very poor netiquette. If you don't know what the buttons do,
don't press them! 

While I know the answer to your question, I won't answer them.
Bad behaviour shouldn't be rewarded.

[References line fixed]


Abigail
-- 
              *** ACHTUNG! ALLES LOOKENSPEEPERS! ***
 
Das Internet is nicht fuer gefingerclicken und giffengrabben.  Ist easy
droppenpacket der routers und overloaden der backbone mit der spammen unt
der me-tooen.  Ist nicht fuer gewerken bei das dumpkopfen.  Das musclicken
sichtseeren keepen das bandwit-spewin hans in das pockets muss; relaxen und
watchen das cursorblinken.


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: 12 Aug 1999 20:23:34 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: searching complex data structure
Message-Id: <slrn7r6ss2.e7v.abigail@alexandra.delanet.com>

John Porter (jdporter@min.net) wrote on MMCLXXII September MCMXCIII in
<URL:news:slrn7r5u5c.ggv.jdporter@min.net>:
!! In article <slrn7r4q0b.d88.abigail@alexandra.delanet.com>, Abigail wrote:
!! >
!! >sub find;
!! >sub find {
!! >    my ($dst, $criteria) = @_;
!! 
!! Uh, why did you predeclare the sub, if not to spec its prototype?

<Duh>
Cause it otherwise doesn't run?
</Duh>

!! >    my ($this_criterium, @other_criteria) = @$criteria;
!! 
!! Just FYI: the singular of "criteria" is "criterion".


Not in Dutch.



Abigail
-- 
perl -we '$@="\145\143\150\157\040\042\112\165\163\164\040\141\156\157\164".
             "\150\145\162\040\120\145\162\154\040\110\141\143\153\145\162".
             "\042\040\076\040\057\144\145\166\057\164\164\171";`$@`'


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: Thu, 12 Aug 1999 18:00:44 -0700
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: String Matching html with indents
Message-Id: <MPG.121d0e1812e6b2f6989e4d@nntp.hpl.hp.com>

In article <cgHs3.61165$jl.38602651@newscontent-01.sprint.ca> on Thu, 12 
Aug 1999 18:47:07 -0300, Vox <v0xman@yahoo.com> says...
> Steve Linberg <linberg@literacy.upenn.edu> wrote in message
> news:linberg-1208991350500001@ltl1.literacy.upenn.edu...

 ...

> > s/^<!--top-->(.*)<!--bottom-->$/dogsandcats/egimosx; ... in that it won't
> >   ^                           ^             ^^^^^ ^
> >   |                           |              \    /
> >   \------- (clues) -----------/  (all unnecessary in this case)

 ...

> Thank you so much for your clue it worked.  I know that ^ is the beginning
> of a line and $ is the end of a line.  I got that from a tutorial but the
> tutorial didn't explain what all the flags do except for 'g' which is global
> changes every occurrence and ' i ' which ignores case but the rest i just
> got out of another free perl program off the net and it worked fine so i
> left them there.

TomC defined the term 'cargo-cult' programming recently 
<URL:http://x28.deja.com/[ST_rn=ps]/getdoc.xp?AN=507990206>:

+ In comp.lang.perl.misc, 
+     tadmc@metronet.com (Tad McClellan) writes:
+ :: i do not know if this is cargo-cult ? whatever that means.
+ :  It means:
+ :      "Copied and used without any understanding of how it works"

This is an amazingly pure example of that.  No ridicule intended to Vox, 
who posted this, because Vox intends to do something about it:

>         At the moment I don't have a perl book so I got to get out
> and buy one to have full working knowledge of perl.

A very good plan!

-- 
(Just Another Larry) Rosler
Hewlett-Packard Laboratories
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com


------------------------------

Date: Thu, 12 Aug 1999 21:22:12 -0400
From: bill@fccj.org (-Sneex-)
Subject: Re: Tom Christiansen "Perl Cookbook"
Message-Id: <120819992122022396bill@fccj.org>

[[ This message was both posted and mailed: see
   the "To," "Cc," and "Newsgroups" headers for details. ]]

On Date: Thu, 12 Aug 1999 22:24:08 GMT
support@gethits.com wrote -

> pages 650-3 in "Perl Cookbook" has a recipe 
> for using the Mail::Mailer module to send email
> through another machine's mail server.

Hmmm, I don't see that.  Which page is this statement on?

> Why does the latter work and not the former?

You need to be authenticated to send (relay) mail thru the server in
question..

What Nat & Tom do state, on pg 653, is that WinBlows doesn't normally
support sending mail from itself, so you have to find a server that is
-

1)  Configured wrong by the mail admin and allows relaying, or
2)  Buy a real mail server platform - IE, Unix :)  OR
3)  Get your upstream provider to allow you to spam the free world...

HTH,
-Sneex- :]



------------------------------

Date: Thu, 12 Aug 1999 20:39:42 -0700
From: "Deane Barker" <UniversalExport@email.msn.com>
Subject: Vanishing Windows
Message-Id: <eVoPP0S5#GA.340@cpmsnbbsa03>

Okay, I downloaded ActivePerl, and installed it.  Smooth as silk.

But...

I wrote the ubiquitous "Hello World!" program (oh yes, I'm on my way...).  I
have .PL files associated with Windows Explorer, so when I click on the
icon (what is it -- a lemon?  I can't tell), a window pops up and I just get
a glimpse of "Hello World!" before it disappears.

I've tried to run programs from the DOS prompt, but no luck.

How do I get the "execute" window to stay up so I can view the results of my
program?  Is this a Perl thing, or a Windows thing?

Deane




------------------------------

Date: 13 Aug 1999 02:01:54 GMT
From: revjack <revjack@radix.net>
Subject: Re: Vanishing Windows
Message-Id: <7ovuai$53p$1@news1.Radix.Net>
Keywords: Hexapodia as the key insight

Deane Barker explains it all:

:I wrote the ubiquitous "Hello World!" program (oh yes, I'm on my way...).  I
:have .PL files associated with Windows Explorer, so when I click on the
:icon (what is it -- a lemon?  I can't tell), a window pops up and I just get
:a glimpse of "Hello World!" before it disappears.

Performs as advertised!

:I've tried to run programs from the DOS prompt, but no luck.

What did you try? What happened?

Stick with running them in the DOS window:

  perl -w hello.pl

That should work.

Be sure to read the "Quirks" section of the FAQ that came with the
installation, so you'll be ready when this doesn't work:

  perl -we 'print "Hello, World\n"'

Read all the other FAQ sections too, there's a wealth of valuable
information in there. 



------------------------------

Date: 12 Aug 1999 21:01:48 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: while loop teminates too early
Message-Id: <slrn7r6v3p.e7v.abigail@alexandra.delanet.com>

Bart Lateur (bart.lateur@skynet.be) wrote on MMCLXXII September MCMXCIII
in <URL:news:37b4ecf6.17656300@news.skynet.be>:
[] Larry Rosler wrote:
[] 
[] >A valid text file is, by *my* definition, a sequence of sequences of 
[] >characters, where each sub-sequence is terminated by a newline 
[] >character.  Dangling characters without a terminating newline character 
[] >are not valid.
[] 
[] Actually, by my definition, a text file is a file that is entirely
[] meaningful when looked at with a text editor (or other text viewer). THe
[] newline characters serve to SEPARATE the lines, not to TERMINATE them,
[] so a final newline at the end isn't striclty necessary.

It always makes my brain hurt when thinking about "text files" and 
"binary files". It's not that my OS cares. Files are just a bunch
of bytes in a given order. Be it in working memory, on a disk, a
tape, or waiting at the other end of a pipe or socket.

You just have file were it sometimes makes sense to process them up to
(and including) a certain byte sequence one at a time, and files where
it doesn't make sense to do so.

"Text files" and "binary files" are just mumble-jumble definitions.
Not very useful, and not very well defined.

Now, there might be OSses that do care about "text files" and "binary files",
but those are just plain silly. In real OSses, files are either a sequence
of bytes, or a sequence of records.


Abigail
-- 
perl -e '* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
         / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / 
         % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %;
         BEGIN {% % = ($ _ = " " => print "Just Another Perl Hacker\n")}'


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: 1 Jul 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 1 Jul 99)
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" from
almanac@ruby.oce.orst.edu. The real FAQ, as it appeared last in the
newsgroup, can be retrieved with the request "send perl-users FAQ" from
almanac@ruby.oce.orst.edu. 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" from
almanac@ruby.oce.orst.edu. 

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 V9 Issue 493
*************************************


home help back first fref pref prev next nref lref last post