[9939] in Perl-Users-Digest
Perl-Users Digest, Issue: 3532 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Aug 25 04:01:56 1998
Date: Tue, 25 Aug 98 01:00:28 -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 Tue, 25 Aug 1998 Volume: 8 Number: 3532
Today's topics:
(Simplest) way to convert string to array of chars? <b.d.low@unsw.edu.au>
Re: (Simplest) way to convert string to array of chars? (Mark-Jason Dominus)
Re: (Simplest) way to convert string to array of chars? <zenin@bawdycaste.org>
Re: better way to truncate string after certain number (Ronald J Kimball)
CGI Question, <peng7072@cs.nyu.edu>
Re: Code Style (Was: How to sort this associative array (Ronald J Kimball)
Re: glob not working through browser (Honza Pazdziora)
Help: How can I use full path of a *.pm file?? <"abbas "@ikorn.ee.unsw.edu.au>
Re: How to select from mutliple tables in Oracle-DBI scancm@biobase.dk
mput and ftp <issam@qtel.com.qa>
new and with a lot of questions <hopeandprayers@hotmail.com>
Re: Perl compiler <ajohnson@gpu.srv.ualberta.ca>
Re: Perl compiler (Craig Berry)
Re: Perl documentation (Abigail)
Re: Perl FAR version 1.1.1 MAKE SURE YOU READ THIS BEFO (Ronald J Kimball)
Re: Perl FAR version 1.1.1 MAKE SURE YOU READ THIS BEFO (Ronald J Kimball)
Re: Perl FAR version 1.1.1 MAKE SURE YOU READ THIS BEFO (Honza Pazdziora)
Re: Perl FAR version 1.1.1 MAKE SURE YOU READ THIS BEFO no.unsoliciteds@dead.end.com
Question about calling Perl from Perl (Phil Taylor)
Using LWP to connect from different local addresses <mivale@dds.nl>
Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 25 Aug 1998 13:45:06 +1000
From: Benjamin Low <b.d.low@unsw.edu.au>
Subject: (Simplest) way to convert string to array of chars?
Message-Id: <35E23342.56777B71@unsw.edu.au>
What's a simple foolproof way to convert a string to an array, each
element of which is one character of the string?
e.g. "hello" -> ( h e l l o)
Is there any way of doing this with pack/unpack? I have
@chars = unpack('a' x length($string), $string);
This isn't particularly elegant, if you ask me, especially if $string is
a constant.
I have these two variations with split:
@chars = split(/.??/, $string);
@chars = split(/0x00*/, $string); # assuming 0x00 isn't in string
Which is better (unpack vs split) from a performance point of view?
(I've assumed unpack is).
--
Benjamin Low
Web Programmer, Communications Unit, University of New South Wales
(02) 9385 1138 b.d.low@unsw.edu.au b.d.low@ieee.org
------------------------------
Date: 25 Aug 1998 00:49:41 -0400
From: mjd@op.net (Mark-Jason Dominus)
Subject: Re: (Simplest) way to convert string to array of chars?
Message-Id: <6rtfp5$cse$1@monet.op.net>
In article <35E23342.56777B71@unsw.edu.au>,
Benjamin Low <b.d.low@unsw.edu.au> wrote:
>I have these two variations with split:
>
>@chars = split(/.??/, $string);
That's just bizarre.
A more normal expressions is
split //, $string;
>Which is better (unpack vs split) from a performance point of view?
Answer 1: They're both fast enough.
Answer 2: use Benchmark;
------------------------------
Date: 25 Aug 1998 04:50:01 GMT
From: Zenin <zenin@bawdycaste.org>
Subject: Re: (Simplest) way to convert string to array of chars?
Message-Id: <904020482.17659@thrush.omix.com>
Benjamin Low <b.d.low@unsw.edu.au> wrote:
: What's a simple foolproof way to convert a string to an array, each
: element of which is one character of the string?
@chars = split //, $string;
: Which is better (unpack vs split) from a performance point of view?
: (I've assumed unpack is).
perldoc Benchmark
But please do note however, that at least 99.9% of the time when
you feel you want to use an array of char, you aren't "Thinking
Perl", and you're likely working **way** too hard.
You're also very, very likely to be creating code that is going
to be mind-boggling slow if you are thinking that an array of
char in Perl is anything even slightly related to an array of
char in C/C++. On 32 bit machines, it's about 37 bytes per
"char" in the array, at least. Not to mention a much higher
lookup time the a C array value.
Which is why this thread begs the question, what exactly do you
plan on doing with this array of char?
--
-Zenin (zenin@archive.rhps.org) From The Blue Camel we learn:
BSD: A psychoactive drug, popular in the 80s, probably developed at UC
Berkeley or thereabouts. Similar in many ways to the prescription-only
medication called "System V", but infinitely more useful. (Or, at least,
more fun.) The full chemical name is "Berkeley Standard Distribution".
------------------------------
Date: Tue, 25 Aug 1998 00:03:46 -0400
From: rjk@coos.dartmouth.edu (Ronald J Kimball)
Subject: Re: better way to truncate string after certain number of "."
Message-Id: <1dea9pc.y2pwmq1mozoe8N@bay1-562.quincy.ziplink.net>
Sean McAfee <mcafee@seawolf.rs.itd.umich.edu> wrote:
> $str =~ s/((?:.*?\.){$n}).*/$1/;
That's the most efficient regex you could come up with? Tsk tsk.
Unnecessary use of non-greedy quantifier... :-)
$str =~ s/^((?:[^.]*\.){$n}).*/$1/;
use Benchmark;
$str1 = 'comp.lang.perl.misc';
$str2 = 'foobar.foobarfoobarfoobarfoobar';
$n = 3;
timethese (1000000, {
yours1 => sub { ($x = $str1) =~ s/((?:.*?\.){$n}).*/$1/ },
yours2 => sub { ($x = $str2) =~ s/((?:.*?\.){$n}).*/$1/ },
mine1 => sub { ($x = $str2) =~ s/^((?:[^.]*\.){$n}).*/$1/ },
mine2 => sub { ($x = $str2) =~ s/^((?:[^.]*\.){$n}).*/$1/ },
});
Benchmark: timing 1000000 iterations of mine1, mine2, yours1, yours2...
mine1: 20 secs (21.13 usr 0.00 sys = 21.13 cpu)
mine2: 21 secs (21.22 usr 0.00 sys = 21.22 cpu)
yours1: 53 secs (52.28 usr 0.00 sys = 52.28 cpu)
yours2: 33 secs (33.08 usr 0.00 sys = 33.08 cpu)
--
_ / ' _ / - aka - rjk@coos.dartmouth.edu
( /)//)//)(//)/( Ronald J Kimball chipmunk@m-net.arbornet.org
/ http://www.ziplink.net/~rjk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: Tue, 25 Aug 1998 02:55:31 EDT
From: Alex Peng <peng7072@cs.nyu.edu>
Subject: CGI Question,
Message-Id: <6rtn53$j00$1@earth.superlink.net>
How to send two different outputs, a binary file and html page?
I want my CGI to do the following :
Ask user save binary file and show up a html page on the browser as
well.
Usually, we provide a link to exe file, so the user save the exe file by
double clicking.
But, I want the server sends out the exe file.
I saw a copule of download pages worked.
I had try to send two different content-type and content-length for the
"first" output, but the second content-type was ignored.
Can anyone point me out the secret?
Thanks,
Alex
------------------------------
Date: Tue, 25 Aug 1998 00:03:49 -0400
From: rjk@coos.dartmouth.edu (Ronald J Kimball)
Subject: Re: Code Style (Was: How to sort this associative array?)
Message-Id: <1deagiw.1fgvqz1imsszcN@bay1-562.quincy.ziplink.net>
John Porter <jdporter@min.net> wrote:
> Ronald J Kimball wrote:
> >
> > Both code samples, yours and John's,
> > had two open parentheses and only one close parenthesis. Not
> > intentionally, of course. :-)
>
> Yeah, but as you'll notice (if you care to go back and check), my
> original post had no such paren imbalance.
No, I don't care to go back and check. It's really not that big a deal,
is it? I'll just take your word for it. :-)
--
_ / ' _ / - aka - rjk@coos.dartmouth.edu
( /)//)//)(//)/( Ronald J Kimball chipmunk@m-net.arbornet.org
/ http://www.ziplink.net/~rjk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: Tue, 25 Aug 1998 07:14:28 GMT
From: adelton@fi.muni.cz (Honza Pazdziora)
Subject: Re: glob not working through browser
Message-Id: <slrn6u4p2j.62u.adelton@aisa.fi.muni.cz>
On Mon, 24 Aug 1998 22:24:52 -0400, Todd B <tbeaulieu@mediaone.net> wrote:
> iis 4
> glob("whatever path") is returning nothing when run through the browser, but
> works correctly when run from the command line. the script is otherwise
> working, so permissions seem to be correct.
And what happens when you try opendir and readdir and $!? The
permissions might be correct for reading the file, but for glob
you might need right on the directory as well.
Hope this helps a bit,
--
------------------------------------------------------------------------
Honza Pazdziora | adelton@fi.muni.cz | http://www.fi.muni.cz/~adelton/
I can take or leave it if I please
------------------------------------------------------------------------
------------------------------
Date: Tue, 25 Aug 1998 14:35:57 +1000
From: Abbas Imani <"abbas "@ikorn.ee.unsw.edu.au>
Subject: Help: How can I use full path of a *.pm file??
Message-Id: <35E23F2D.BDA5D980@ikorn.ee.unsw.edu.au>
Hi folks,
I am trying to use a file in a /usr/local/bin directory. I use the
folloing format :
use ::usr::local::bin::book_item;
Perl5 compiler recognizes the file in the directory but it gives an
error of
Can't call method "import" without a package or object reference at
./book line 3.
BEGIN failed--compilation aborted at ./book line 3.
Please note that if I copy the book_item.pm file to Perl5 directory and
just type
use book_item;
no error occures.
I am wondering if anybody has any idea about how I can define a full
path for a *.pm file when used in
use command.
Cheers,
Abbas IMANI
Computer Networks Laboratory
School of Electrical Engineering
The University of New South Wales
Sydney NSW 2052 AUSTRALIA
Phones: +612 9385 4055
+612 9385 4070
Fax: +612 9385 5993
Mobile: 041-2280826
Email: A.Imani@unsw.edu.au
Web: http://ikorn.ee.unsw.edu.au/~abbas
--------------------------------------------
The earth was flat until Galileo said it wasn't.
- Virtual Philosopher
------------------------------
Date: 25 Aug 1998 07:10:53 GMT
From: scancm@biobase.dk
Subject: Re: How to select from mutliple tables in Oracle-DBI
Message-Id: <6rto1t$f4m$1@news.net.uni-c.dk>
Gill Ge Wang <gwang@dallas.geoquest.slb.com> wrote:
: Hi, Experters:
: I am trying to select variables from mutliple tables in Oracle-DBI and
: failed. What I want is the following query:
: select table1.variable1, table2.variable2 from table1, table2 where
: table1.variable3=table2.variable3
: $sth = $dbh->prepare("select table1.variable1, table2.variable2 from
: table1, table2 where table1.variable3=table2.variable3") or die;
: Could someone help me to develop the correct syntax in Oracle-DBI?
: Thank you very much!
eval 'use Oraperl; 1' || die $@ if $] >= 5;
$lda=&ora_login("","myuserid","mypasswd") || die "$ora_errstr\n";
$statement =
"select
table1.variable1,
table2.variable2
from
table1,
table2
where table1.variable3=table2.variable3"
$my_csr = &ora_open($lda, $statement) || die "my_csr: $ora_errstr\n$statement\n";
while (($var1,$var2) = &ora_fetch($my_csr)) {
<do something>
}
: Regards!
: Gill
--
Christian Mondrup, Computer Programmer
Scandiatransplant, Skejby Hospital, University Hospital of Aarhus
Brendstrupgaardsvej, DK 8200 Aarhus N, Denmark
Phone: +45 89 49 53 01, Telefax: +45 89 49 60 07
------------------------------
Date: Tue, 25 Aug 1998 09:55:27 +0300
From: "Issam W. Alameh" <issam@qtel.com.qa>
Subject: mput and ftp
Message-Id: <6ruc06$a06@ns1.qatar.net.qa>
hi,
is there any body who knows how I can copy a directory structure using ftp
commands, from a telnet account, So I have a telnet account and I want to
copy a directory structure to a ftp account on another machine.
Regards
Issam
------------------------------
Date: Tue, 25 Aug 1998 00:37:10 -0500
From: stacy wright <hopeandprayers@hotmail.com>
Subject: new and with a lot of questions
Message-Id: <35E24D86.24690141@hotmail.com>
I've never used a usnet group before so beware fumbling steps. just got
Linus v5, and perl 5 for dummies. i need some info to use group and my
software,especially my perl v4 already resident in Linux and the perl 5
that i've just aquired. help!!!!
------------------------------
Date: Tue, 25 Aug 1998 01:24:03 -0500
From: Andrew Johnson <ajohnson@gpu.srv.ualberta.ca>
Subject: Re: Perl compiler
Message-Id: <35E25883.989CF99@gpu.srv.ualberta.ca>
Craig Berry wrote:
!
! Tom Christiansen (tchrist@mox.perl.com) wrote:
! : But why are you trying to stop others from learning? That's *evil*.
!
! You charge for the classes you teach, correct? And for your consulting
! services? If so, I expect a humble retraction of the above. If not,
! pardon me. Charging for your courses is just as much 'stopping others
! [who can't afford to attend] from learning' as obfuscating/compiling code
! is.
[snip]
! : Is that what you'd like
! : to see the world come to? What you're talking about is anti-science,
!
! Science is not a fair comparison. Science is (in the ideal sense) about
! the quest for Truth, for the secrets of the world in which we live. It
! strives toward a culture of openness and sharing. Perl is a tool used (by
! many -- or most -- of us) in our daily, grubby quest for money. We happen
! to love it, and enjoy using it, but money drives the process, by and
! large.
hmmm, actually it seems fairly applicable ... but only if we stop
trying to compare the Ideal of Science with the reality of
working as a programmer...what about the reality of the working
scientists --- many scientists do in fact sell (or work for
companies that sell) the products of their reasearch and keep
said research products proprietary... but a great many sell only
their labor of doing/sharing the research (usually indirectly
through publish/perish performance goals) and their (sometimes
forced) labor in teaching the skills needed to become scientists
... and it is largely through the efforts of this latter group of
scientists doing and sharing science that makes Science (and
makes a great deal of what the proprietary scientists do and
sell) even possible.
Viewed in that light, your attempt at belittling how Tom C might
choose to earn a living with your accusation that he is as guilty of
not sharing or "stopping others from learning" as those who hide
their code rings a little hollow.
$0.02
regards
andrew
------------------------------
Date: 25 Aug 1998 06:50:55 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: Perl compiler
Message-Id: <6rtmsf$bgn$1@marina.cinenet.net>
[comp.lang.perl.modules trimmed from followups]
Andrew Johnson (ajohnson@gpu.srv.ualberta.ca) wrote:
: Craig Berry wrote:
: ! Science is not a fair comparison. Science is (in the ideal sense) about
: ! the quest for Truth, for the secrets of the world in which we live. It
: ! strives toward a culture of openness and sharing. Perl is a tool used (by
: ! many -- or most -- of us) in our daily, grubby quest for money. We happen
: ! to love it, and enjoy using it, but money drives the process, by and
: ! large.
:
: hmmm, actually it seems fairly applicable ... but only if we stop
: trying to compare the Ideal of Science with the reality of
: working as a programmer...
[snip]
Hence my '(in the ideal sense)' caveat above. I agree completely that
working scientists tend to have the same IP decisions and economic
concerns, in a broad sense, as programmers do.
: what about the reality of the working
: scientists --- many scientists do in fact sell (or work for
: companies that sell) the products of their reasearch and keep
: said research products proprietary... but a great many sell only
: their labor of doing/sharing the research (usually indirectly
: through publish/perish performance goals) and their (sometimes
: forced) labor in teaching the skills needed to become scientists
: ... and it is largely through the efforts of this latter group of
: scientists doing and sharing science that makes Science (and
: makes a great deal of what the proprietary scientists do and
: sell) even possible.
Very good analogy to the proprietary vs. free-software schools in our own
profession. Note, however, that (even though they love doing it!) the
'pure', non-proprietary scientists are in fact getting paid for their
work. Everybody's got to eat. Deny even the most enthusiastic
astrophysicist *any* route to putting bread on the table, and he'll find a
day job (and probably continue astrophysics as a hobby, but with far less
time, energy, and resources to devote to it).
: Viewed in that light, your attempt at belittling how Tom C might
: choose to earn a living with your accusation that he is as guilty of
: not sharing or "stopping others from learning" as those who hide
: their code rings a little hollow.
I understand your point, though *please* note that I'm not attempting to
belittle Tom C! The man's a demigod of free software, a fountain of
purest perlessence, and I thank him most humbly for his labors on my (and
others') behalf. I merely wished to make clear that Tom's path of
"distribute free software, live off teaching and consulting" has no
*inherent* moral superiority over "sell proprietary software, live off
revenues." They are merely two different ways to make a living.
To put it another way: Are the 'applied research, proprietary' scientists
you mention above morally inferior to their 'pure research, free'
comrades? Without pure, free research, we wouldn't know about (e.g.)
hydrogen spin-flippng under high frequency RF fields. Without applied,
proprietary, profitable research, the hospital wouldn't have had the NMR
scanner that diagnosed my brother's cancer and saved his life.
Personally, I like both!
---------------------------------------------------------------------
| Craig Berry - cberry@cinenet.net
--*-- Home Page: http://www.cinenet.net/users/cberry/home.html
| "Ripple in still water, when there is no pebble tossed,
nor wind to blow..."
------------------------------
Date: 25 Aug 1998 05:22:04 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: Perl documentation
Message-Id: <6rthls$2rb$2@client3.news.psi.net>
David Hawker (dhawker@bigfoot.com) wrote on MDCCCXX September MCMXCIII in
<URL: news:35e53294.11586626@news.cableol.net>:
++ On 23 Aug 1998 23:02:14 GMT, abigail@fnx.com (Abigail) felt the need to
++ post:
++
++ >Then complain to the vendors for shipping a system without documentation.
++
++ I don't expect the vendors to bundle the interrupt guides, assembly
++ language FAQs, windows api details, etc etc with a home computer.... maybe
++ if I was buying one from a university for studying computing (which
++ incidentally I shall be doing in a few weeks) but not from a high street
++ store.
Oh, so it's logical Perl supplies your missing documentation? And of
course Python. And Rexx. And whatever other language/tool you install on
your system and that might reference your your system. They all should
come with documentation for your system. That makes a lot of sense,
doesn't?
++ >Would you buy a TV without a manual too, and then complain the TV guide
++ >doesn't have instructions on how to operate your TV?
++
++ No, that's not the point. I can get the docs I want - it's just an
++ inconvenient and costly way of getting them. I'd rather have them all in
++ one place, on my hard disk :) I'll get to work on finding the UNIX manpages
++ all packaged up.
Then comp.lang.perl.misc isn't the place to ask, is it?
Abigail
--
perl -we 'print split /(?=(.*))/s => "Just another Perl Hacker\n";'
------------------------------
Date: Tue, 25 Aug 1998 00:03:53 -0400
From: rjk@coos.dartmouth.edu (Ronald J Kimball)
Subject: Re: Perl FAR version 1.1.1 MAKE SURE YOU READ THIS BEFORE POSTING
Message-Id: <1deahup.1n2pl75k2k51N@bay1-562.quincy.ziplink.net>
<no.unsoliciteds@dead.end.com> wrote:
> It's a symbyosis - the gurus need
> an audience they can impress and the audience needs the gurus to better their
> own skills. I just don't think they should be allowed to be crass and
> arrogant, or rather I don't think a small minority of them should be allowed
> to continue to be persistently crass and arrogant.
But darnit if those newbies don't persist in being crass and arrogant.
Ah well, what can you do?
;-)
--
_ / ' _ / - aka - rjk@coos.dartmouth.edu
( /)//)//)(//)/( Ronald J Kimball chipmunk@m-net.arbornet.org
/ http://www.ziplink.net/~rjk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: Tue, 25 Aug 1998 00:03:56 -0400
From: rjk@coos.dartmouth.edu (Ronald J Kimball)
Subject: Re: Perl FAR version 1.1.1 MAKE SURE YOU READ THIS BEFORE POSTING
Message-Id: <1deahvn.1ra0vwbng0ye7N@bay1-562.quincy.ziplink.net>
<no.unsoliciteds@dead.end.com> wrote:
> Check out the posting "Statistics for comp.lang.perl.misc" the bulkiest
> threads were those that degenerated into petty verbal mud slingings caused by
> somebody knowing too much Perl and not enough common sense.
Like this one, and yourself, you mean?
Oh, wait, you said you're not an experienced Perl programmer. Well, the
rest fits, anyway.
--
_ / ' _ / - aka - rjk@coos.dartmouth.edu
( /)//)//)(//)/( Ronald J Kimball chipmunk@m-net.arbornet.org
/ http://www.ziplink.net/~rjk/
"It's funny 'cause it's true ... and vice versa."
------------------------------
Date: Tue, 25 Aug 1998 07:06:12 GMT
From: adelton@fi.muni.cz (Honza Pazdziora)
Subject: Re: Perl FAR version 1.1.1 MAKE SURE YOU READ THIS BEFORE POSTING
Message-Id: <slrn6u4oj4.62u.adelton@aisa.fi.muni.cz>
On Tue, 25 Aug 1998 04:51:56 +0900, no.unsoliciteds@dead.end.com <no.unsoliciteds@dead.end.com> wrote:
> they didn't read such and such a book ? And why on earth would they be coming
> _here_? They won't have accomplished anything of any consequence. Or perhaps
This is a good question. What do you think: why on earth are they
coming here now?
The answer in most cases is: to get quick answer. Not to learn
something, not to talk with others, not to create a comunity,
a better world. This would be OK with commercial support, but is
a Bad Thing[tm] in the newsgroup.
--
------------------------------------------------------------------------
Honza Pazdziora | adelton@fi.muni.cz | http://www.fi.muni.cz/~adelton/
I can take or leave it if I please
------------------------------------------------------------------------
------------------------------
Date: Tue, 25 Aug 1998 17:00:19 +0900
From: no.unsoliciteds@dead.end.com
Subject: Re: Perl FAR version 1.1.1 MAKE SURE YOU READ THIS BEFORE POSTING
Message-Id: <35E26F13.BDD63DDC@dead.end.com>
Ronald J Kimball wrote:
> But darnit if those newbies don't persist in being crass and arrogant.
> Ah well, what can you do?
I think if we apply legal principles to being crass and arrogant and
substitute the phrase "crass and arrogant" for the word "muder" (and for those
of you who can't handle metafors I'm not suggesting there is any connection
between being crass and arrogant and murder) you'll find that the laws will
punish both premeditated and non premeditated murder, however if a murder was
committed with premeditataion the punishment is more severe.
Yes it's true newbies can be pretty crass and arrogant but you may notice they
don't do it persistently, where as the frequent flamers are always the same
people, time and time again. So which is worse - accidental crass arrogance or premeditated?
So what if a newbie posts a FAQ, or asks the dumbest question on earth it's
never the same newbie - doesn't make it right, but it doesn't justify being
intentionally abusive - the world is a mixed ability classroom and here I'm
talking about the bigger picture not just this NG.
But it seems just _too_ difficut for certain ppl to pass up the chance of
being abusive. I mean wtf it's only a newbie, not like it's somebody that
matters - don't you find that attitude slightly repugnant? I object to that
kind of thing IRL and I object to it here.
[talking about the size of this thread and the several others like it citied
in "Statistics for comp.lang.perl.misc"]
> Like this one, and yourself, you mean?
Odd that if what you say is true this thread and I don't even make it into the
10 ten in any of the statistics, but rather another thread currently running
the same pro Abusers right to flame/contro Abusers right to abuse kind of
discourse. Now why would such an off topic debate be overshadowing the real
topics I wonder?
Steve Palincsar desired to underline:
> However I suspect in your case the problem is not "knowing too much
> Perl."
I admit it - I'm not a Perl expert - that's one of the reasons I subscribed to
this NG, and I don't think you'll find a posting of mine asking someone to
"think for me", but you will find serveral along the same lines as this one -
because I got very tired, very quickly of seeing the same names flaming over,
and over ad nauseam and nobody said anything. "Chi tace, consente"- he whoever
holds their tongue, agrees.
------------------------------
Date: Tue, 25 Aug 1998 07:41:25 GMT
From: phil@ackltd.demon.co.uk (Phil Taylor)
Subject: Question about calling Perl from Perl
Message-Id: <35e2699b.1714088@news.demon.co.uk>
I want to separate my perl program into separate files and have a
single controlling program. There seems to be a few different ways of
doing this that I have read about from books and previous posts for
example system() or Do().
I am developing on WIN95 OS but the application will run run for real
on Solaris, so I'm looking for a portable solution.
Thanks
Phil
------------------------------
Date: Tue, 25 Aug 1998 09:36:17 +0200
From: Michiel van Leening <mivale@dds.nl>
Subject: Using LWP to connect from different local addresses
Message-Id: <35E26971.1B5ECD3F@dds.nl>
Hi,
I'm testing a local app for which I have to connect to my server from
different IP addresses. I have multiple addresses set up locally, but
how do I go about setting the LocalAddr to one of those addresses. I've
located the creation of the socket (believe it's in http.pm) but I'm not
gonna alter that file :-)
LWP default connects from localhost...(I think at least)...but I want to
use one of my other addresses. I also want to maintain the default
LWP::UserAgent structure in my scripts.
Any help would be greatly appreciated, either here or at my
emailaddress.
Thanks in advance,
Michiel van Leening
---------------------------------------------------------------
Michiel van Leening - Internet Application Developer
Saurus Internet - Den Haag
mailto:leening@saurus.nl - http://www.saurus.nl/
---------------------------------------------------------------
Money is its own reward.
------------------------------
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 3532
**************************************