[8960] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 2578 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed May 13 07:10:16 1998

Date: Wed, 13 May 98 04:00:44 -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, 13 May 1998     Volume: 8 Number: 2578

Today's topics:
        [Q]CGI script to simulate a form submition? (Gong Wei)
    Re: a header for `Mail me copies' or `Do not mail me co (Jari Aalto+usenet.nil)
        Another flock question... <txapi@xures.ei.uvigo.es>
    Re: Checking for Ping reply??? (M.J.T. Guy)
    Re: Does Perl have a IDE?I don't like command line. (Chip Salzenberg)
    Re: Does Perl have a IDE?I don't like command line. <samk@was.net>
    Re: editor? (Uwe Schuerkamp)
    Re: Ever Wonder Why Not Everyone Uses Modules? (Chip Salzenberg)
    Re: Ever Wonder Why Not Everyone Uses Modules? (Chip Salzenberg)
        File Upload to HP-UX - Apache <bjoern_nordmann@hp.com>
        getting the modem to dial out <samk@was.net>
    Re: glob() function leaves behind a child process? <cs@zip.com.au>
    Re: Grieving our dying community <andy@wonderworks.co.uk>
    Re: Grieving our dying community <andy@wonderworks.co.uk>
    Re: Help with building GD for perl (WercRB)
    Re: How can you break out of a 'while... ' loop in a fu (Stuart Wright)
    Re: How can you break out of a 'while... ' loop in a fu (Stuart Wright)
    Re: How can you break out of a 'while... ' loop in a fu (Stuart Wright)
    Re: How can you break out of a 'while... ' loop in a fu (Stuart Wright)
    Re: How can you break out of a 'while... ' loop in a fu (Stuart Wright)
    Re: How can you break out of a 'while... ' loop in a fu (Stuart Wright)
    Re: Installing PERL on NT <lh@hassmfg.com>
    Re: Is if ($a="something") a bad style? <lr@hpl.hp.com>
    Re: Is if ($a="something") a bad style? (Chip Salzenberg)
    Re: Need Perl command to pull HTML from a remote site.  <Tony.Curtis+usenet@vcpc.univie.ac.at>
        New IDE for Perl <samk@was.net>
    Re: Newbie needs help! <jerry.rocteur@pophost.eunet.be>
    Re: Perl problem (Bart Lateur)
        POSIX ???? <chriz@space.eu.org>
    Re: Significant digit? (Craig Berry)
    Re: Significant digit? (Craig Berry)
    Re: Significant digit? (Craig Berry)
        Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)

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

Date: 13 May 1998 10:41:06 GMT
From: ccegongw@leonis.nus.sg (Gong Wei)
Subject: [Q]CGI script to simulate a form submition?
Message-Id: <6jbtc2$nar$1@nuscc.nus.edu.sg>


hi all,

Is there any way to use a CGI script to simulate a form submition?  Let's
say there is a form (POST) located at http://www.nus.edu.sg/form.html
which actually calls the cgi script /cgi-bin/script.cgi.  Inside the 
form, let's say there are two fields, "Age" and "Name".  So now is there 
any way to run the script.cgi just as if it were started by the "submit" 
request sent from a browser client?

Please follow up or sent your email to ccegongw@leonis.nus.edu.sg.  Thanks!

Regards
========
Gong Wei


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

Date: 13 May 1998 13:28:02 +0300
From: Jari Aalto <<jari.aalto@poboxes.com> (Jari Aalto+usenet.nil) >
Subject: Re: a header for `Mail me copies' or `Do not mail me copies' (was Re: Ever Wonder Why Not Everyone Uses Modules?)
Message-Id: <tb4syufost.fsf@blue.sea.net>

| 98-05-08 stanley@skyking.OCE.ORST.EDU (John Stanley) comp.lang.perl.misc
| >the `Mail-Copies-To: never' header explicitly advises
| >actively-maintained newsreaders to NOT mail the copies; the
| 
| Please provide an RFC reference that defines this header for news.

It's convention started and suggested by Lars. Just like you won't find
the de facto signature separator "\n-- \n" anywhere from the RFCs.
This snipped is from Procmail Tips page at:
ftp://cs.uta.fi/pub/ssjaaa/pm-tips.html

jari

    30.6 Mail-Copies-To header

        [Suggested by Lars, the Author of Emacs Gnus]

        ...Mail-Copies-To: is a header line used in messages on
        Usenet to direct copies by email of followups to posts.
        http://www.math.fu-berlin.de/~guckes/rfc/mail-copies-to.html

        [SL Baur <steve@xemacs.org>] The `Mail-Copies-To:' header should
        control how your email (and Usenet) client prepares a followup
        message. It gives control to the sender of a message whether
        `courtesy' duplicate copies of messages should be sent.
        There are two forms:

            Mail-Copies-To: never

        Do not automatically include the sender of the message being
        responded to. There are two canonical examples.

            Usenet:
            From: foo@foo.bar
            Newsgroups: comp.emacs.xemacs
            Mail-Copies-To: never

        A followup in a conforming client should generate in the response
        message headers:

            Newsgroups: comp.emacs.xemacs

            Email:
            From: foo@foo.bar
            To: mailing-list@somewhere.com
            Cc: luser@somewhereelse.com
            Mail-Copies-To: never



        A followup in a conforming client should generate in the response
        message headers:

            To: mailing-list@somewhere.com
            Cc: luser@somewhereelse.com

        The second form includes a properly formed RFC822 email address as
        the parameter:

            Mail-Copies-To: someaddress@somewhere.com

        In this case, the sender of the message is specifically requesting
        that responses to the message not only go to the main forum (either
        mailing list or Usenet newsgroup), but a duplicate copy should also
        be sent to `someaddress@somewhere.com'. There are (again) two
        canonical examples.


            Usenet:
            From: foo@foo.bar
            Newsgroups: comp.emacs.xemacs
            Mail-Copies-To: foo@foo.bar

        A followup in a conforming client should generate in the response
        message headers:

            Newsgroups: comp.emacs.xemacs
            Cc: foo@foo.bar[1]

            Email:
            From: foo@foo.bar
            To: mailing-list@somewhere.com
            Cc: luser@somewhereelse.com
            Mail-Copies-To: foo@foo.bar

        A followup in a conforming client should generate in the response
        message headers:

            To: mailing-list@somewhere.com
            Cc: luser@somewhereelse.com, foo@foo.bar[2]


        There is no requirement that the address in
        `Mail-Copies-To' match the `From' address. Footnotes: [1] Or `To:
        foo@foo.bar' [2] It is also acceptable to put `foo@foo.bar' in the
        To: line.


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

Date: Wed, 13 May 1998 09:36:00 +0200
From: Jose Manuel Lopez Franco <txapi@xures.ei.uvigo.es>
Subject: Another flock question...
Message-Id: <35594D60.1A65@xures.ei.uvigo.es>

I'm newbe on PERL, and i know that flock is used in order to lock a
file, but is there any way of write an alert when a script that attemps
to do a flock is waiting so time?

Thank you and sorry for my english...
-- 
  Jose Manuel Lopez Franco
http://xures.ei.uvigo.es/~txapi
mailto:txapi@xures.ei.uvigo.es


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

Date: 13 May 1998 08:27:03 GMT
From: mjtg@cus.cam.ac.uk (M.J.T. Guy)
Subject: Re: Checking for Ping reply???
Message-Id: <6jblgn$oq3$1@lyra.csx.cam.ac.uk>

Andrew Specht <andrew@iaccess.com.au> wrote:
>hmmm... ok  any idea where i can find out about that command?

What Martien said.

>Martien Verbruggen wrote in message <6ilug9$244$4@comdyn.comdyn.com.au>...
>>use Net::Ping;
>>
>># perldoc Net::Ping;
    ^^^^^^^^^^^^^^^^^

Or perhaps your Perl isn't correctly installed?


Mike Guy


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

Date: Wed, 13 May 1998 07:49:11 GMT
From: chip@mail.atlantic.net (Chip Salzenberg)
Subject: Re: Does Perl have a IDE?I don't like command line.
Message-Id: <6jbjco$v56$1@cyprus.atlantic.net>

According to ilya@math.ohio-state.edu (Ilya Zakharevich):
>Chip Salzenberg <chip@mail.atlantic.net:
>> According to ilya@math.ohio-state.edu (Ilya Zakharevich):
>> >(grep is absolutely useless unless you know how deep you
>> >need to search) if I need to lookup DOCs.
>> 
>>  1.  sh$  find /usr/man -type f -print | xargs grep FOO
>>  2.  zsh$ grep FOO /usr/man/**/*(.)
>
>Yet another proof of my point.  One cannot use Perl docs on *nix
>without fluency with (4 in your examples) other tools.

Ilya, why exaggerate?  It helps you not.  The examples I give there
require knowing grep and either zsh or find+xargs, so the tool counts
are either two or three, never four.

Besides, if your man system works, then you just "man -k" and it's
easy.  The zsh approach, or the find+xargs approach, is needed only if
your system has a really stupid "man" command installed.

The key here is that text files can be searched with whatever tool(s)
you find convenient and appropriate.  "Book" files (or other formats)
can be accessed only with special-purpose tools like VIEW.EXE.  I know
which I'd prefer to have around.
-- 
Chip Salzenberg                - a.k.a. -               <chip@pobox.com>
"I brought the atom bomb.  I think it's a good time to use it."  //MST3K
           ->  Ask me about Perl training and consulting  <-
     Like Perl?  Want to help out?  The Perl Institute: www.perl.org


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

Date: Wed, 13 May 1998 04:44:53 -0500
From: Samuel King <samk@was.net>
To: Ken Williams <ken@forum.swarthmore.edu>
Subject: Re: Does Perl have a IDE?I don't like command line.
Message-Id: <35596B94.74D9B3C5@was.net>

Yes there is one for perl 95/Nt it is available as a preview release>> Free
Download
at
http://www.solutionsoft.com/perl.htm
Samuel King

Ken Williams wrote:

> In article <6j7iuk$q68$5@info.uah.edu>, Greg Bacon <gbacon@cs.uah.edu> wrote:
>
> >In article <6j7brt$6g6@mozo.cc.purdue.edu>,
> >        gebis@albrecht.ecn.purdue.edu (Michael J Gebis) writes:
> >: In spite of the slew on non-answers to this question, I
> >: don't think that a good IDE (written, of course, in perl
> >: using Tk) would be such a bad thing.  Especially
> >: considering that most people know how to pull down the
> >: "help" menu.  Certainly more than know how to use
> >: perldoc.
> >
> >Please give us three good reasons why we should stroke even one key to
> >help people who refuse to use man, perldoc, or grep?  Perl requires at
> >least that much of a clue.
>
> Okay, tell me what's wrong with the following classroom teacher:
>
>   "Class, I'm not going to lift one finger to help you if you can't read and
>    understand a simple calculus textbook."
>
> The point is that beginners often lack some basic concepts that never
> would have occurred to the people that wrote the man pages.  Check out the
> beginning of the LLama book, it has a quote by Randal (I think) saying
> something like "I didn't learn English by reading the dictionary, and
> likewise I didn't learn to program by reading books and man pages."  Or
> something like that.
>
> Now, I'm not saying that man pages aren't helpful, because of course they
> are.  I use them all the time.  And beginners should definitely refer to
> them also.  But sometimes it's very difficult to get what you need from
> them, because you don't even have a framework in your mind in which to
> assimilate the information.  Man pages are great when you already know a
> function, for example, but can't remember what the order of its outputs
> are.  They're not so great when you've got a problem to solve and you
> don't have a clue about what methods are available and appropriate.  The
> best thing in that situation is a human being who knows a lot more than
> you do about what you're trying to do.
>
> Michael's point was that in an IDE we'd have a chance to make an intuitive
> help system.  What's wrong with that?  It could make more sense to
> beginners.  If it meant that fewer people would bother you, why wouldn't
> you like it?
>
> Of course, I don't have a clue about how one would proceed in writing an
> IDE.  Perhaps I should go read the man page.  Just kidding, I don't mean
> that as snide as it sounds.





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

Date: Wed, 13 May 1998 09:53:02 GMT
From: hoover@telemedia.de.nospam.thanks (Uwe Schuerkamp)
Subject: Re: editor?
Message-Id: <24e61.82$Qp3.10116359@news3.cityweb.de>

In article <01bd79bf$6f337680$6f9999c0@watson.colloquium.co.uk>,
Webmaster <webmaster@web-design.org.uk> wrote:
>Try notepad

Yeah, right. Give GNU emacs a try, it's free, has syntax highlighting
and a language mode for perl.

Uwe


-- 
Uwe Schuerkamp  //////////////////////// Phone: +49 5241 80 10 66
Telemedia Bertelsmann AG \\\\\\\\\\\\\\\ Fax:   +49 5241 80 95 18
Carl-Bertelsmann-Str. 161 I //////////// uwe.schuerkamp at telemedia.de
33311 Guetersloh \\\\\\\\\\\\\\\\\\\\\\\ http://www.telemedia.de/~hoover


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

Date: Wed, 13 May 1998 07:45:08 GMT
From: chip@mail.atlantic.net (Chip Salzenberg)
Subject: Re: Ever Wonder Why Not Everyone Uses Modules?
Message-Id: <6jbj56$v4i$1@cyprus.atlantic.net>

D'oh!  Typo alert:

According to chip@mail.atlantic.net (Chip Salzenberg):
>"Don't reinvent the wheel.  You're might have corners."  -- Henry Spencer

That's "yours", of course.

(Tom, please don't smite me! :-))
-- 
Chip Salzenberg                - a.k.a. -               <chip@pobox.com>
"I brought the atom bomb.  I think it's a good time to use it."  //MST3K
           ->  Ask me about Perl training and consulting  <-
     Like Perl?  Want to help out?  The Perl Institute: www.perl.org


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

Date: Wed, 13 May 1998 07:44:26 GMT
From: chip@mail.atlantic.net (Chip Salzenberg)
Subject: Re: Ever Wonder Why Not Everyone Uses Modules?
Message-Id: <6jbj3r$v3m$1@cyprus.atlantic.net>

According to Jamie Hoglund <jhoglund@mirage.skypoint.net>:
>For those exact reasons, I seldom (if ever) use a module ...

"Don't reinvent the wheel.  You're might have corners."  -- Henry Spencer

Some modules are time sinks.  Many aren't.  Judge, but don't prejudge.
-- 
Chip Salzenberg                - a.k.a. -               <chip@pobox.com>
"I brought the atom bomb.  I think it's a good time to use it."  //MST3K
           ->  Ask me about Perl training and consulting  <-
     Like Perl?  Want to help out?  The Perl Institute: www.perl.org


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

Date: Wed, 13 May 1998 10:32:24 +0200
From: Bjoern Nordmann <bjoern_nordmann@hp.com>
Subject: File Upload to HP-UX - Apache
Message-Id: <35595A97.4265F541@hp.com>

This is a multi-part message in MIME format.
--------------C4C01E7C1F8AD4313EFA3FAC
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi Programmers

I've a problem : I want to upload files to my Server (HP-UX) via a
web-page. I've installed a apache web-server.
Does someone have experience or has someone written a script
which does the save.

Kind Regards

--------------C4C01E7C1F8AD4313EFA3FAC
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Bjoern Nordmann
Content-Disposition: attachment; filename="vcard.vcf"

begin:          vcard
fn:             Bjoern Nordmann
n:              Nordmann;Bjoern
org:            Hewlett Packard Company
email;internet: bjoern_nordmann@hp.com
title:          Web-Programming Engineer
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
version:        2.1
end:            vcard


--------------C4C01E7C1F8AD4313EFA3FAC--



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

Date: Wed, 13 May 1998 05:02:47 -0500
From: Samuel King <samk@was.net>
Subject: getting the modem to dial out
Message-Id: <35596FC6.228520CC@was.net>

How or where would I even start this task.?
Is there anyway to get perl to initialize and connect to my isp with my
modem?
SK



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

Date: 13 May 1998 08:26:41 GMT
From: Cameron Simpson <cs@zip.com.au>
To: Martin Gregory <mgregory@asc.sps.mot.com>
Subject: Re: glob() function leaves behind a child process?
Message-Id: <19980513182306-cameron-1-01302@sid.research.canon.com.au>

Martin Gregory <mgregory@asc.sps.mot.com> writes:
| I was a bit concerned to find that:
|  print "wait before glob: " . wait() . "\n";
|  $a = glob('foo');
|  print "wait after glob: " . wait() . "\n";
| 
| results in 
| 
|  wait before glob: -1
|  wait after glob: 27332
| 
| I had rather hoped that the only process IDs that would come out of a
| wait() call would be processes that I created myself (using fork() or
| some such).
| 
| Is this an reasonable expectation?

No, it's not.

Firstly, you've no real guarrentee that some arbitrary subroutine
doesn't fork something off itself (I have a few which parse the output
of UNIX commands to get particular pieces of information, for example).

Secondly, there's no guarrentee that your script wasn't exec()ed by some
previous process which itself has made children - naturally these remain
children of the exec()ee.

Use waitpid instead. If you must use wait (and often it's desired, if for
example you've forked a few children and want to wait for whichever completes
first), then keep track of all your pids, and ignore the others.
--
Cameron Simpson, DoD#743        cs@zip.com.au        http://www.zip.com.au/~cs/

They shouldn't get any new nuclear weapons until they've used the ones
they've got.	- Murff


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

Date: Tue, 12 May 1998 21:54:05 +0100
From: Andy Armstrong <andy@wonderworks.co.uk>
Subject: Re: Grieving our dying community
Message-Id: <of4JuAAtbLW1EwJD@wndrwrks.demon.co.uk>

In article <news-0805980921500001@buzz.alink.net>, Chris Russo
<news@russo.org> writes

>News flash: Most people are stupid.  More at eleven.

It does however seem inconceivable that they're as stupid as they make
out.

-- 
** Don't CC any follow-ups to me - I *do* read the newsgroups I post to **
Andy Armstrong, Wonderworks, http://www.wonderworks.co.uk


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

Date: Tue, 12 May 1998 22:08:04 +0100
From: Andy Armstrong <andy@wonderworks.co.uk>
Subject: Re: Grieving our dying community
Message-Id: <aPeFKFA0oLW1Ewv3@wndrwrks.demon.co.uk>

In article <6issr5$6rk@mozo.cc.purdue.edu>, Michael J Gebis <gebis@albre
cht.ecn.purdue.edu> writes
>nvp@shore.net (Nathan V. Patwardhan) writes:
>
>}Or was I just dreaming the past (almost) decade away?  Or was it both
>}dreaming and stupidity?  Whichever it was, I can't recall that I've
>}*ever* seen a more selfish, boorish and misguided group of individuals
>}than many of those I've seen on comp.lang.perl.misc.
>
>Hey, if we're complaining about the group, how about this?
>
[snipped: various newbie questions and responses]

It's a shame that so many people feel obliged to use spam resistant
return addresses otherwise it might be feasible to provide the group
with a fairly simple auto-moderator.

How about an a-moderator which allocates a newbie score to each post and
then changes the subject to steer all posts which fall below some
threshold into a single thread called "*** NEWBIE POSTS ***".

-- 
** Don't CC any follow-ups to me - I *do* read the newsgroups I post to **
Andy Armstrong, Wonderworks, http://www.wonderworks.co.uk


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

Date: 13 May 1998 10:47:22 GMT
From: wercrb@aol.com (WercRB)
Subject: Re: Help with building GD for perl
Message-Id: <1998051310472201.GAA21845@ladder01.news.aol.com>

please? do you not know or something?

>come on, someone help me out here.
>
>>I have been unable to install GD (1.18) for perl because
>>the make file halts and says it can't find perlio.h.
>>The file in question actually exists in several
>>directories including the perl dir.
>>
>>The docs for GD say:
>> (Please do not complain to me if your build fails with an
>>  error about not finding perlio.h.  This file is part of more
>>  recent versions of Perl.  You will need a recent version of
>>  Perl to compile and install this package).
>>
>>But I have the most recent official version (perl5.004_04) and
>>it is still not working.
>>
>>Any suggestions for how I can solve this problem would be greatly
>>appreciated.
>>
>>Thanks,
>>Jon
>>
>>--------------------------------------------------
>
>
>




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

Date: Wed, 13 May 1998 09:56:32 GMT
From: stu-w@usa.net.remove.everything.after.net (Stuart Wright)
Subject: Re: How can you break out of a 'while... ' loop in a function?
Message-Id: <35596dd5.2863968@news.demon.co.uk>

On Sun, 10 May 1998 19:58:54 GMT, Andrew Libby <alibby@voicenet.com>
wrote:

>
>One of the nice thing about the perl distribution is that it comes with
>enough
>documentation to kill a large farm animal.  See man perlsyn, particularly
>
>the next and last operators.
>

I'll do a search for 'man perlsyn' whatever that is.
I'll try using 'last' thanks.
Incidentally I *did* buy the 'learn Perl in a week' book by somebody
or other.  It's crap - there's no language reference.

Thanks for your help.



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

Date: Wed, 13 May 1998 09:57:05 GMT
From: stu-w@usa.net.remove.everything.after.net (Stuart Wright)
Subject: Re: How can you break out of a 'while... ' loop in a function?
Message-Id: <35596e5c.2998982@news.demon.co.uk>

On Sun, 10 May 1998 17:53:06 -0400, Jenna Farnham
<webmaster@webmoose.com> wrote:

>
>I like the O'Reilly "Camel Book" (Programming Perl).  You can take a
>look at: http://www.oreilly.com/catalog/pperl2/
>
>Jenna
>
Will do - I'll probably buy it.
Thanks



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

Date: Wed, 13 May 1998 09:59:57 GMT
From: stu-w@usa.net.remove.everything.after.net (Stuart Wright)
Subject: Re: How can you break out of a 'while... ' loop in a function?
Message-Id: <35596e7b.3029816@news.demon.co.uk>

On Mon, 11 May 1998 17:32:47 +0200, Denis DORR <dorr@cetrel.lu> wrote:

>> Very hard to find one.
>
>Don't think so !

I use the internet about 3 hours a day - so I'm not a novice at
searching for stuff on the 'net.  I create web pages as a hobby and
I'm a windows developer for a living.
I found it hard to find any useful information on the Perl language
and after an hour of searching for a plain Perl reference I gave up.

>Assuming you have the Perl documentation on your system (you *should*) :
>

Why *should* I have the Perl documentation on my system ?!  Does it
come bundled with Windows 95 or something ?!
I would have it if I could find some !

>perldoc perlfun
>/break
>
>will display :
>
>
>...skipping...
>      last    The last command is like the break statement in C (as used
>in
>              loops); it immediately exits the loop in question.  If the
>...

Thanks for your help.



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

Date: Wed, 13 May 1998 10:02:02 GMT
From: stu-w@usa.net.remove.everything.after.net (Stuart Wright)
Subject: Re: How can you break out of a 'while... ' loop in a function?
Message-Id: <35596f2b.3205549@news.demon.co.uk>

On Mon, 11 May 1998 15:59:09 GMT, Tom Phoenix <rootbeer@teleport.com>
wrote:

>On Mon, 11 May 1998, Stuart Wright wrote:
>
>> A simple question, but all the pearl FAQs are useless.
>
>Please justify that sweeping generalization.
>

I read them and I found *no* useful information for the 'novice' Perl
programmer.

>> All I want is a basic perl/cgi reference - all the commands, functions
>> etc.
>
>You couldn't have looked very hard at the FAQ if you didn't find pointers
>to documentation on all parts of Perl. And those docs also lead you to
>references on CGI scripting, too, at no extra charge.

I read the FAQ and I couldn't find a reference.

>
>> Very hard to find one.
>
>If you find the docs insufficient, please submit a patch. Thanks!

I'm too busy and definately too ignorant, mate.






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

Date: Wed, 13 May 1998 10:02:44 GMT
From: stu-w@usa.net.remove.everything.after.net (Stuart Wright)
Subject: Re: How can you break out of a 'while... ' loop in a function?
Message-Id: <35596fb0.3339051@news.demon.co.uk>

On Mon, 11 May 1998 15:18:23 -0400, "Peter Perchansky" <fp@pmpcs.com>
wrote:

>Greetings:
>
>Look at using "next" and "last".
>

Thanks.

>See page 25 of "Programming Perl"
>

????




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

Date: Wed, 13 May 1998 10:06:24 GMT
From: stu-w@usa.net.remove.everything.after.net (Stuart Wright)
Subject: Re: How can you break out of a 'while... ' loop in a function?
Message-Id: <35596fcc.3367201@news.demon.co.uk>

On 12 May 1998 20:18:32 GMT, Tom Christiansen <tchrist@mox.perl.com>
wrote:

> [courtesy cc of this posting sent to cited author via email]
>
>In comp.lang.perl.misc, stu-w@usa.net writes with a now despammed
>address available for all to see,
>
>:A simple question, but all the pearl FAQs are useless.
>
>What is Pearl?
>

Lets take a guess..
In this case is it
a) A small valuable sphere produced by oysters
b) A (not uncommon) typeo in the Perl newsgroup which some sad
individual can't resist picking up on.

>You failed to read the perlsyn manpage, qui tollit peccata tui.
>Shame on you.
>

I'll have a look for the 'perlsyn manpage' whatever and wherever that
is.
Thanks.

Mon aeroglisseur est plain d'anguilles.
I feel justifiably ashamed - I'm going to cut all my hair off and bow
my head.
:)



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

Date: Wed, 13 May 1998 04:54:43 -0400
From: Lisa Humphries <lh@hassmfg.com>
Subject: Re: Installing PERL on NT
Message-Id: <35595FD3.707A91E7@hassmfg.com>

I did a newsgroup search on Alta Vista for +Perl +Windows +IDE and found a
company which is introducing an IDE for Perl for Windows.  Pre-release
versions are free.  Here's their URL

http://www.solutionsoft.com/perl.htm

Regards,

Dave Hass

Ryan McGuigan wrote:

> Glenn Morgan (gmorgan@photographics.co.uk) wrote:
> : Try downloading the Win32 port from www.activestate.com
> : It's a self extracting binary distribution, just download it and then
> : exectue the file to install it.
> : I've not had any problems with - dead easy.
>
> No offense but you must not do much with it.  Activestate's distribution
> of perl is very limited.  For a decent distribution of perl for win32, try
> Garusamy Sarathy's distribution, you can download it from CPAN.
>
> : Hauk Langlo wrote in message <3557F603.33C0D4B0@forumnett.no>...
> : >Hi there. After using PERL at work for some weeks I have finally got my
> : >own PC at home. I'm pretty new to the PC format and have not managed to
> : >successfully install/build perl on my PC. I got a file called
> : >perl5.00402-bindist04-bc. I have done the installation process but my
> : >perl programs will not work like they do at my job, they will not work
> : >at all really. Do anyone know exactly what kind of thins I will have to
> : >do in order to run PERL programs on my Win-NT PC? Any help would be
> : >apprecuated. Thanks.
> : >
> : >Hauk Langlo (JAPH)
> : >
> : >





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

Date: Tue, 12 May 1998 23:56:02 -0700
From: "Larry Rosler" <lr@hpl.hp.com>
Subject: Re: Is if ($a="something") a bad style?
Message-Id: <6jbg73$mt8@hplntx.hpl.hp.com>

Chip Salzenberg wrote in message <6jaogh$ujp$1@cyprus.atlantic.net>...
>According to Yong Huang <yong@shell.com>:
>>In C, we often say
>>if (a="something")
>>But in Perl, a warning is given.
>
>No it isn't.  What makes you think it is?  (Assuming you correct the
>code to say '$a', of course.)


The following test makes *me* think it is:

#!/usr/local/bin/perl -w

my $a;

if ($a = "something") { print $a }

__END__

This is perl, version 5.004_03

Either you didn't test this before posting, or you forgot the -w flag.
Or should I upgrade my perl?  (Frequent Answer to Questions)

--
Larry Rosler
Hewlett-Packard Laboratories
lr@hpl.hp.com





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

Date: Wed, 13 May 1998 07:50:52 GMT
From: chip@mail.atlantic.net (Chip Salzenberg)
Subject: Re: Is if ($a="something") a bad style?
Message-Id: <6jbjft$v5r$1@cyprus.atlantic.net>

According to "Larry Rosler" <lr@hpl.hp.com>:
>Chip Salzenberg wrote in message <6jaogh$ujp$1@cyprus.atlantic.net>...
>>According to Yong Huang <yong@shell.com>:
>>>In C, we often say
>>>if (a="something")
>>>But in Perl, a warning is given.
>>
>>No it isn't.
>
>Either you didn't test this before posting, or you forgot the -w flag.

The former.  Sorry.
-- 
Chip Salzenberg                - a.k.a. -               <chip@pobox.com>
"I brought the atom bomb.  I think it's a good time to use it."  //MST3K
           ->  Ask me about Perl training and consulting  <-
     Like Perl?  Want to help out?  The Perl Institute: www.perl.org


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

Date: 13 May 1998 09:05:48 +0200
From: Tony Curtis <Tony.Curtis+usenet@vcpc.univie.ac.at>
Subject: Re: Need Perl command to pull HTML from a remote site. (HTTPGET)??
Message-Id: <7xhg2u7ir7.fsf@beavis.vcpc.univie.ac.at>

Re: Need Perl command to pull HTML from a remote
site. (HTTPGET)??, elitegrp <elitegrp@pond.net> said:

elitegrp> Thanks in advance for any assistance I can get!  I
elitegrp> am trying to find a command in Perl (possibly
elitegrp> HTTPGET??) that will pull HTML off of a remote
elitegrp> site by URL alone.  Also, once this document is
elitegrp> pulled from the remote server, is there a way I
elitegrp> can find the date of that file (the last time it
elitegrp> was updated)?

use LWP::UserAgent in conjunction with HTTP::Request.

It will return remote documents and headers.

tony

-- 
Tony Curtis, Systems Manager, VCPC,      | Tel +43 1 310 93 96 - 12; Fax - 13
Liechtensteinstrasse 22, A-1090 Wien, AT | http://www.vcpc.univie.ac.at/

"You see? You see? Your stupid minds! Stupid! Stupid!" ~ Eros, Plan9 fOS.


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

Date: Wed, 13 May 1998 04:32:24 -0500
From: Samuel King <samk@was.net>
Subject: New IDE for Perl
Message-Id: <355968A7.1BB50720@was.net>

This is the place to try the first IDE for perl, well that I know of
anyway..
I haven't tested or even downloaded it yet. It is prerelease , so a
preview download is available for free..
It is for win/95/NT

http://www.solutionsoft.com/perl.htm

Thought you guys might want to know about it

Samuel King



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

Date: Wed, 13 May 1998 10:13:59 +0200
From: Jerry Rocteur <jerry.rocteur@pophost.eunet.be>
Subject: Re: Newbie needs help!
Message-Id: <35595647.7149389C@pophost.eunet.be>

Mitch O'Brien wrote:
> 
> I'm a Professor of Psychology and have started getting interested in
> Perl.  

Watch out Larry ;-)))))))))))))


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

Date: Wed, 13 May 1998 10:23:21 GMT
From: bart.mediamind@tornado.be (Bart Lateur)
Subject: Re: Perl problem
Message-Id: <355d7493.5648651@news.tornado.be>

A.H. Roberts wrote:

 if ($function = "+") {
	$ans = $a + $b + $c
 }

>What I am TRYING to do is have $function do this:
>
>$ans = $a $function $b $function $c 
>
>and give an answer depending on which operator $function was.

Can't you just extend this?

   if ($function eq '+') {
	return $a + $b + $c;
   } elsif ($function eq '*') {
	return $a * $b * $c;
   }
  # case not provided! error

This way, if $function isn't in the list you provided, it will fall
through, and you can report an error. The advantage is: YOU are in
control.

	Bart.


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

Date: Wed, 13 May 1998 07:53:33 GMT
From: Christopher Berg <chriz@space.eu.org>
Subject: POSIX ????
Message-Id: <3559517D.2A11CEFA@space.eu.org>

When using Active Ware4s Perl distribution I had the POSIX library on my
machine that is I downloaded it and installed it .... 
I wanted to use the generated unique strings for passwords or temp file
names etc. 

Since ActiveWare4s version of Perl I have changed to this much better
version eh(!) the Real Perl distribution the native one...

When using this distribution Ill get all modules already included in the
package thats great .... BUT POSIX has either left the building or wasnt
good enough to be included or could it be that POSIX has an replacement
in the Native version of Perl?

Could anyone please help me out here ... I have searched on CPAN sites
and just found a link to this strange named guy (I think its short for
his name or something) and he has a POSIX catalog but inside of that
catalog its just alot of strange modules that I - sorry to say - doesnt
have a clue what they are ?

Or should I write a new POSIX kinda type library for just generating
unique strings? I still think that there must be a solution for this out
there somewhere.

So please if anyone out there has the Native Perl distribution and have
solved this with unique temp filenames and/or passwords please let me
know ,ok?

regards
chriz


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

Date: 13 May 1998 07:01:00 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: Significant digit?
Message-Id: <6jbgfc$jo8$4@marina.cinenet.net>

Tom Christiansen (tchrist@mox.perl.com) wrote:
:  [courtesy cc of this posting sent to cited author via email]
: 
: In comp.lang.perl.misc, 
:     rjk@coos.dartmouth.edu (Ronald J Kimball) writes:
: :    ...The * character as a length specifier is not supported.  But,
: :    you can easily get around this by including the length expression
: :    directly into FORMAT...
: 
: This is no longer true.

Ah, that would explain why it worked for me under the latest Perl.  I will
admit that, now that it's been pointed out to me, I'll probably lean
toward the interpolation-into-format-string technique instead.  It looks a
bit cleaner, obviously ports to recent Perl versions better, and just
feels more Perlish to me. 

---------------------------------------------------------------------
   |   Craig Berry - cberry@cinenet.net
 --*--    Home Page: http://www.cinenet.net/users/cberry/home.html
   |      Member of The HTML Writers Guild: http://www.hwg.org/   
       "Every man and every woman is a star."


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

Date: 13 May 1998 06:53:46 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: Significant digit?
Message-Id: <6jbg1q$jo8$2@marina.cinenet.net>

brian d foy (comdog@computerdog.com) wrote:
: In article <6jafep$dou$1@marina.cinenet.net>, cberry@cinenet.net (Craig Berry) posted:
: >  my $trunc     = (int ($mantissa * $figFactor + 0.5)) / $figFactor;
: 
: that division is going to mess everything up for certain values of
: $mantissa and $figFactor.

Yes, that's why I liked the sprintf version better.  Larry Rossler was
kind enough to point out that the precision-indirection trick is better
handled by interpolating into the format string in Perl.  Just goes to
show the power of old habits...when I start doing numerical code, I also
shift gears into C-think. :)

---------------------------------------------------------------------
   |   Craig Berry - cberry@cinenet.net
 --*--    Home Page: http://www.cinenet.net/users/cberry/home.html
   |      Member of The HTML Writers Guild: http://www.hwg.org/   
       "Every man and every woman is a star."


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

Date: 13 May 1998 06:56:05 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: Significant digit?
Message-Id: <6jbg65$jo8$3@marina.cinenet.net>

John Stanley (stanley@skyking.OCE.ORST.EDU) wrote:
: In article <6jalpa$pei$2@client2.news.psi.net>,
: Abigail <abigail@fnx.com> wrote:
: >1200 is 4 significant digits. Try:
: 
: 1200 has 2 significant digits. 1200. has 4.

It's actually impossible to say how many either has a priori, though the 
latter does more strongly suggest 4.  Abigail's correct in pointing out 
that only exponential notation is unambiguous.

---------------------------------------------------------------------
   |   Craig Berry - cberry@cinenet.net
 --*--    Home Page: http://www.cinenet.net/users/cberry/home.html
   |      Member of The HTML Writers Guild: http://www.hwg.org/   
       "Every man and every woman is a star."


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

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 2578
**************************************

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