[7744] in Perl-Users-Digest
Perl-Users Digest, Issue: 1370 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Nov 26 14:12:17 1997
Date: Wed, 26 Nov 97 11:01:47 -0800
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, 26 Nov 1997 Volume: 8 Number: 1370
Today's topics:
Re: How to directly call a POST method <rootbeer@teleport.com>
Re: How To Test if number is ODD or EVEN? <westmj@esvax.dnet.dupont.com>
Re: How To Test if number is ODD or EVEN? <bblaukop@acorn.co.uk>
Looking to buy AUCTION script <brett@moggy.com>
Re: Newbie having RE problems. <rootbeer@teleport.com>
Re: old regular expression question <eike.grote@theo.phy.uni-bayreuth.de>
Re: Perl - Date Compare <rootbeer@teleport.com>
Re: PERL Hourly Rates <dboorstein@ixl.com>
Re: PERL Hourly Rates <markm@nortel.ca>
Re: PERL Hourly Rates (Toutatis)
Perl5 Devel tools (ala cscope and cflow)?? <faulkner@castor.dev.tivoli.com>
Postgres and Perl/Pg: How to get a hash of all element (Peter Murray)
Re: Proxy Client <aaron@soltec.net>
Q: How to move files around ? (Stewart Hutton)
Re: Q: How to move files around ? <verhaege@esat.kuleuven.ac.be>
Re: read from end of file (by line) <mak@mark.dircon.net>
Re: read from end of file (by line) <rootbeer@teleport.com>
Segmentation fault <whatever@alligator-farm.com>
Re: Sorting an 'almost but not really' complicated data <rootbeer@teleport.com>
Re: trouble with libwww & friends in nonstandard libdir <mchase@ix.netcom.com>
Variable Pattern Options <derzayg@gsao.med.ge.com>
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 25 Nov 1997 08:33:37 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: SveN <SveN@schleissheimer.de>
Subject: Re: How to directly call a POST method
Message-Id: <Pine.GSO.3.96.971125083314.26061N-100000@usertest.teleport.com>
On Mon, 24 Nov 1997, SveN wrote:
> Now I want to call test.pl directly without any user action
> (no klicking on the submit button) with a specified value for
> var. How can I do this?
You can do this with the LWP module, from CPAN. Hope this helps!
--
Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
Ask me about Perl trainings!
------------------------------
Date: 25 Nov 1997 14:51:25 GMT
From: Mike West <westmj@esvax.dnet.dupont.com>
Subject: Re: How To Test if number is ODD or EVEN?
Message-Id: <65eold$nkk@topgun.es.dupont.com>
In article <comdog-ya02408000R2411971501330001@news.panix.com>
brian d foy, comdog@computerdog.com writes:
>
>In article <01bcf675$0ea174c0$c82da8c0@akilles.ittek.org>, "Robert Friberg" ><robert.friberg@your_clothes.eductus-vast.com> wrote:
>
>>print $number && 1 ? 'Odd!': 'Even!', "\n";
>
>i guess you didn't bother to test this. thanks for posting crap.
>
foreach $number ( -3..4 )
{
print $number, ": " ,$number%2 && 1 ? 'Odd!': 'Even!', "\n";
}
Gives:
-3: Odd!
-2: Even!
-1: Odd!
0: Even!
1: Odd!
2: Even!
3: Odd!
4: Even!
Though wrong, Robert's way was only off by "%2", and when fixed
it seems to meet the wizard's criteria of being terse, dense,
and needing about an hour in the documentation to understand,
and relies on what I think of as advanced features.
Just thought it might be interesting to make his way work.
------------------------------
Date: Tue, 25 Nov 1997 15:55:52 +0000 (GMT)
From: "J.B.Blaukopf" <bblaukop@acorn.co.uk>
Subject: Re: How To Test if number is ODD or EVEN?
Message-Id: <ant251552bbaLJLo@ether126.acorn.co.uk>
In article <65eold$nkk@topgun.es.dupont.com>, Mike West
<URL:mailto:westmj@esvax.dnet.dupont.com> wrote:
> In article <comdog-ya02408000R2411971501330001@news.panix.com>
> brian d foy, comdog@computerdog.com writes:
> >
> >In article <01bcf675$0ea174c0$c82da8c0@akilles.ittek.org>, "Robert Friberg" ><robert.
> friberg@your_clothes.eductus-vast.com> wrote:
> >
> >>print $number && 1 ? 'Odd!': 'Even!', "\n";
> >
> >i guess you didn't bother to test this. thanks for posting crap.
> >
>
> foreach $number ( -3..4 )
> {
> print $number, ": " ,$number%2 && 1 ? 'Odd!': 'Even!', "\n";
> }
>
> Though wrong, Robert's way was only off by "%2", and when fixed
> it seems to meet the wizard's criteria of being terse, dense,
> and needing about an hour in the documentation to understand,
> and relies on what I think of as advanced features.
>
> Just thought it might be interesting to make his way work.
To make his way work, just make it a bitwise and instead of a logical one...
print $number & 1....
instead of
print $number && 1....
Ben Blaukopf
------------------------------
Date: 25 Nov 1997 14:44:24 GMT
From: "Brett" <brett@moggy.com>
Subject: Looking to buy AUCTION script
Message-Id: <01bcf9b0$7c26a900$341a1acb@speedy>
I am looking to purchase an online Auction script and am currently
comparing features/prices. If you have one for sale, or know of one, could
you please forward details or a web address to me at brett@moggy.com ??
Thanks!
Brett
------------------------------
Date: Tue, 25 Nov 1997 08:32:40 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: Robin Marshall <robin@highway1.com.au>
Subject: Re: Newbie having RE problems.
Message-Id: <Pine.GSO.3.96.971125083146.26061M-100000@usertest.teleport.com>
On Mon, 24 Nov 1997, Robin Marshall wrote:
> I have a gargantuan data file which is a comma-delimited database of
> intersections and road crashes. Unfortunately some of the rows use ST
> for street, while others use STR and so on, hence creating a number of
> unique names for a single street. What I want to do is extract this word
> from a string in the form:
>
> "ALBANY HIGHWAY "
> "ALBANY HWY "
> "NORTH ALBANY HIGHWAY "
>
> This would give me a list of words such as HWY, HIGHWAY, ST, ROAD etc,
> which I could then examine and identify the overlapping names, which
> would be easier than reading through a 14000 line database! I would
> really appreciate any help with this problem.
You can get the words from those strings by using split. Is that what you
need? Hope this helps!
--
Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
Ask me about Perl trainings!
------------------------------
Date: Tue, 25 Nov 1997 15:16:42 +0100
From: Eike Grote <eike.grote@theo.phy.uni-bayreuth.de>
Subject: Re: old regular expression question
Message-Id: <347ADDCA.15FB@theo.phy.uni-bayreuth.de>
Hi,
Ian Goldstein wrote:
>
> I know this was covered before... but it escapes me.
>
> I have a variable with 6 digits . I want to split this into 2 variables
> of 3 digits each.
> $var=123456;
> ($var1,$var2) = split(/\(\d\d\d\)\(\d\d\d\)/, $var);
>
> This does not seem to work. What am I missing.
You want to "split", but Perl's "split" isn't appropriate in this
case ... what you need is simple pattern matching:
($var1,$var2) = ( $var =~ /(\d\d\d)(\d\d\d)/ );
Bye, Eike
--
=======================================================================
>>--->> Eike Grote <eike.grote@theo.phy.uni-bayreuth.de> <<---<<
-----------------------------------------------------------------------
Home Page, Address, PGP,...: http://www.phy.uni-bayreuth.de/~btpa25/
-----------------------------------------------------------------------
PGP fingerprint: 1F F4 AB CF 1B 5F 4B 1D 75 A1 F9 C5 7B 3F 37 06
=======================================================================
------------------------------
Date: Tue, 25 Nov 1997 08:06:06 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: teo <cteo@ford.com>
Subject: Re: Perl - Date Compare
Message-Id: <Pine.GSO.3.96.971125075943.26061F-100000@usertest.teleport.com>
On Mon, 24 Nov 1997, teo wrote:
> Could someone tells me how to perform
> a date compare in Perl? Thanks.
I haven't tested this code, but maybe it will work for you.
@sorted_dates = sort by_date @dates;
sub by_date {
$b->kissing <=> $a->kissing or
$b->cuddliness <=> $a->cuddliness or
$b->cuteness <=> $a->cuteness or
$a->neediness <=> $b->neediness or
$b->intelligence <=> $a->intelligence or
$a cmp $b
}
Then again, maybe you should use a Date module from CPAN. Good luck!
http://www.perl.com/CPAN/
--
Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
Ask me about Perl trainings!
------------------------------
Date: Tue, 25 Nov 1997 10:04:46 -0500
From: Dan Boorstein <dboorstein@ixl.com>
Subject: Re: PERL Hourly Rates
Message-Id: <347AE90E.FF8D83CE@ixl.com>
brian d foy wrote:
>
> >comdog@computerdog.com (brian d foy) wrote:
> >
> >> In article <3475A7B3.819F9C2E@bridge.bellsouth.com>, Matthew Bonvicin
> ><Matthew.Bonvicin@bridge.bellsouth.com> wrote:
> >>
> >> >Could someone please provide for me an approximate hourly rate for
> >> >advanced PERL CGI scripting. I may have the need shortly to outsource
> >> >some development but am unsure what to expect.
> >>
> >> CGI scripting is trivial. if the programmer has other skills, then
> >> you may have to pay more than minimum wage.
> >
> >Don't think I would hire a programmer who labels CGI programming as
> >trivial. Likely his output would be trivial too. But maybe I am missing
> >your point.
>
> CGI scripting is trivial. you output an HTTP header and some data. all
> of my interns pick it up the same day that i teach it to them. remember
> that CGI programming is just another skill set - it's not a job
> description.
>
> and i would hardly label my output as trivial - but only a few lines of
> it has anything to do with CGI - the rest is "normal" programming
> stuff. that's the difference between my extremely high rates and the
> rates i pay my junior programming staff.
as an exercise, have your junior programmers write their own URLEncode
and URLDecode routines, based on what they know (or even what they can
divine from the RFC's). i think you'll find some get it right, some
come close, and other simply don't know where to begin.
or do you think that this is not an integral part of CGI programming.
oh sure, it's been done over and over to get the fastest, most generic,
most terse yet readable snippet possible, but without it you have
CGI-programming-minus-URL(En|De)coding. you have merely given your
programmers a subset of CGI programming.
furthermore, do they know the difference between a GET and a POST,
or has that already been taken care of for them:
CGI-programming-minus-URL(En|De)coding-minus-GET-minus-POST
do they form their own, non-parsed headers:
CGI-programming-minus-URL(En|De)coding-minus-GET-minus-POST-minus-HTTP-Headers
boy this list is getting long, and the subset is getting small.
so here is a venn diagram representing what i see from your
statement.
/---------------------------------------------------------\
| |
| CGI programming |
| |
| /-----------------\ |
| | what your jp's do | |
| \-----------------/ |
| |
\---------------------------------------------------------/
maybe they even do things outside of CGI programming, but
to make the claim that "CGI scripting is trivial" based
on what your junior programmers do is obviously not correct.
hope this doesn't come off as too aggressive, i am just
attempting to vigorously defend my job as non-trivial, and
yes i do refer to my job position as a CGI programmer. i
spend my days working on a CGI application which interfaces
with an oracle backend, and consists of over 200 separate
scripts, which can be called in a multitude of different
ways. there's a need to keep state to avoid hitting the
database on every transaction, there's customization for
different clients with only one master script, there's
dynamic question creation and verification based on
database results and much much more.
and, to give the original poster a useful answer, i normally
charge $50/hr for "advanced PERL CGI scripting".
thank you for your time,
dan boorstein
CGI programmer
------------------------------
Date: 25 Nov 1997 12:24:08 -0500
From: Mark Mielke <markm@nortel.ca>
Subject: Re: PERL Hourly Rates
Message-Id: <lq1yb2c51l3.fsf@bmers2e5.nortel.ca>
Jacqui Caren <Jacqui.Caren@ig.co.uk> writes:
> In article <comdog-ya02408000R2411972104240001@news.panix.com>,
> brian d foy <comdog@computerdog.com> wrote:
> >>comdog@computerdog.com (brian d foy) wrote:
> >>> In article <3475A7B3.819F9C2E@bridge.bellsouth.com>, Matthew Bonvicin
> >><Matthew.Bonvicin@bridge.bellsouth.com> wrote:
> >>> >Could someone please provide for me an approximate hourly rate for
> >>> >advanced PERL CGI scripting. I may have the need shortly to outsource
> >>> >some development but am unsure what to expect.
> >>> CGI scripting is trivial. if the programmer has other skills, then
> >>> you may have to pay more than minimum wage.
> >>Don't think I would hire a programmer who labels CGI programming as
> >>trivial. Likely his output would be trivial too. But maybe I am missing
> >>your point.
> >CGI scripting is trivial. you output an HTTP header and some data. all
> >of my interns pick it up the same day that i teach it to them. remember
> >that CGI programming is just another skill set - it's not a job
> >description.
> But advanced perl programming requires a level of skill that takes
> many years to obtain. And given the short life of perl(5) the demand
> for *very good* perl5 programmers far outstrips supply (in the UK).
> Regarding hourly rates, a professional will cost a lot but then they
> can usually cost a project very well and will (in many cases) come up
> with a very competitive per project fixed price. I know that we do...
I think i'm stuck in the middle on deciding which is theft and which is
good corporate procedure :-)
I'm in highschool and have known perl and its internals quite well in the
last 5 years. I find it quite... distasteful... that some of my peers are
taking "jobs" to write html pages and get paid $20+/hour. That's a rip-off
to the companies fuck... it's only worth minimum wages. I also have several
friends who "know" perl. But their scripts are unwieldy, large, and cost
more to maintain then to actually use. So, from this point of view, i do
realize that writing professional code (as i make every attempt to do)
is worth the large price to the company. But i don't charge it.
I have ANOTHER set of friends who choose to do the "to-your-home-pc-fixing"
and they charge like $50 a shot sometimes and all they do is run one of
several anti-virus programs... or use a boot disk and change config.sys...
wow... check out those skills :-) Yes... for the home pc user who doesn't
want to think they they goofed up, so by paying someone big bucks to fix
their computer they have an excuse for not being able to fix it themselves.
(The computer was _really_ screwed, so i paid a professional $50 - Yeah right)
But what is a professional? If the only reason costs are so high is because
of all the amateurs in existance.... and the amateurs all claim to be
professionals and ask for the money... hehehe it's a no win scenario for
the companies so they just take a shot and ditch out the money. I find
this almost as close to theft as say... bulk e-mailers stealing network
bandwidth.
mark (feeling moral right now :-) )
-- _________________________
. . _ ._ . . .__ . . ._. .__ . . . .__ | Northern Telecom Ltd. |
|\/| |_| |_| |/ |_ |\/| | |_ | |/ |_ | Box 3511, Station 'C' |
| | | | | \ | \ |__ . | | .|. |__ |__ | \ |__ | Ottawa, ON K1Y 4H7 |
markm@nortel.ca / al278@freenet.carleton.ca |_______________________|
------------------------------
Date: 25 Nov 1997 16:39:09 GMT
From: toutatis@no.mail.please (Toutatis)
Subject: Re: PERL Hourly Rates
Message-Id: <toutatis-ya023180002511971738500001@news.euro.net>
[brian d foy says "CGI scripting is trivial"]
jzawodn@wcnet.org wrote:
> On 25 Nov 1997 03:22:09 GMT, toutatis@no.mail.please (Toutatis) wrote:
> >...creating dynamic and interactive webcontent using CGI and server
> >side scripting is a hell of a job.
> >If you take that job serious. Wich most webdesigners don't.
>
> Why should they?
>
> That's like expecting my painter to take the construction of my new
> house seriously. All he needs to know is when the drywall is going to
> be up. The builders [programmers] worry about the infrastructure.
Painters regarding their job as trivial usually deliver lousy paintwork.
There's a *lot* more he needs to know than when the drywall is going to
be up.
--
Toutatis
------------------------------
Date: 25 Nov 1997 08:27:16 -0600
From: Gary Faulkner <faulkner@castor.dev.tivoli.com>
Subject: Perl5 Devel tools (ala cscope and cflow)??
Message-Id: <pqafetkq0r.fsf@castor.dev.tivoli.com>
Hello all,
I've been searching around quite a bit for cflow (preferrably) and/or
cscope like tools for perl5. Specifically, I've got several rather
large packages that are used by a large set of cgi scripts. I need to
get my hands around what is being called where, and what is old, dead
code that can be removed.
Does anyone have, or know of, tools like this for perl5??
Thanks!!
--
Gary Faulkner
Software Technology Specialist
Tivoli Systems, Inc.
faulkner@tivoli.com
------------------------------
Date: Tue, 25 Nov 1997 09:56:14 -0400
From: pem@po.cwru.edu (Peter Murray)
Subject: Postgres and Perl/Pg: How to get a hash of all elements of a tuple
Message-Id: <pem-2511970956140001@ganges.lit.cwru.edu>
I am bringing up a system in Postgres SQL and interfacing with a Perl
script using the Pg library. One of the things I'd like to do is create a
hash for a tuple where the key is the column name and the value is the
data value. This seems to be a common enough thing to want, but all of
the documentation for Pg seems to lead to only one-at-a-time access to
columns. So something like this is required (assuming I have the result
of an exec() in $result):
my($tuple_num);
for ($tuple_num = 0; $tuple_num < $result->ntuples; $tuple_num++) {
my($field_num, %record);
for ($field_num = 0; $field_num < $result->nfields; $field_num++) {
$record{$result->fname($field_num)} = $result->getvalue($tuple_num,
$field_num);
}
##
## Do something with %record
##
}
This doesn't seem very efficient -- especially if the library has to send
a request to the database for each field value. Is this the only way to
do it? ... or am I missing something in the documentation?
Thanks in advance.
Peter
--
Peter Murray, Library Systems Manager pem@po.cwru.edu
Digital Media Services http://www.cwru.edu/home/pem.html
Case Western Reserve University, Cleveland, Ohio W:216-368-5888
------------------------------
Date: Tue, 25 Nov 1997 08:37:25 -0600
From: "Aaron Young" <aaron@soltec.net>
Subject: Re: Proxy Client
Message-Id: <aaron-2511970837250001@pool1-032.wwa.com>
Hello it's me again
I originally posted this question under anothers email address because I
can't get to newsgroups at work.
What I don't understand is why I was pointed toward another newsgroup when I
asked how to do some client stuff in perl.....granted I didn't pepper my
post with references to perl, but that was because I figured that if I post
to comp.lang.perl.misc...............it would be understood that I was doing
this in perl.
Is it that no one has done this? Is it that no one has done this in perl?
Is it that that other newsgroup can answer the question in perl as well?
I really really hope I wasn't pointed away because I didn't mention perl in
my post some minimum number of times.
aaron
------------------------------
Date: Tue, 25 Nov 1997 17:56:31 GMT
From: stewart@circustuff.co.uk (Stewart Hutton)
Subject: Q: How to move files around ?
Message-Id: <880480648.21440.0.nnrp-02.9e98e5dc@news.demon.co.uk>
I've hacked quite a number of scripts by now - but have never had to
move files around the disk.
Until now. =:>
Can someone point me to any references or samples please?
It's a really simple task - I just want to be able to hit a button
which will copy all files from one directory to another - it's just
that I have never had a need to learn this stuff before ...
I'm more comfortable with Perl 4 syntax than 5, but both are available
to me.
TIA
Stewart
---------------------------------------------------------------------------
CIRCUSTUFF: WHERE BOOKS CAN SKILL
83 Uist Rd, Glenrothes, Fife, KY7 6RE, UK. Phone/Fax: +44 (0)1592 620711
EMail:webmaster@circustuff.co.uk URL: http://www.circustuff.co.uk/
---------------------------------------------------------------------------
------------------------------
Date: Tue, 25 Nov 1997 21:59:13 +0100
From: Wim Verhaegen <verhaege@esat.kuleuven.ac.be>
Subject: Re: Q: How to move files around ?
Message-Id: <347B3C21.209FC6D1@nospam.kuleuven.ac.be>
Stewart Hutton wrote:
> It's a really simple task - I just want to be able to hit a button
> which will copy all files from one directory to another - it's just
> that I have never had a need to learn this stuff before ...
>
use File::Copy;
and you can copy 'foo' to 'bar' with
copy('foo', 'bar');
The necessary loops are left as an exercise ;-)
Wim Verhaegen
(replace nospam with esat)
------------------------------
Date: Tue, 25 Nov 1997 16:05:10 +0000
From: Mark Morgan <mak@mark.dircon.net>
Subject: Re: read from end of file (by line)
Message-Id: <347AF736.B5DE1E0C@mark.dircon.net>
Scott Anthony Hamilton wrote:
>
> I'm in the process of writing a small module for reading from
> the end of the file line by line to the beginning. Much like
> $scalar = <FH> but in reverse.
>
> Before I go on, is there a perl trick which can accomplish this
> task with ease?
>
> --
> Scott Hamilton / sah@uow edu au / KeyID C3107E75
> 87 FE 1D C3 DE 20 37 FB 6F 30 6A 8A D1 38 9A B5
Could do:
#!/usr/bin/perl5
open FH, "file";
@file=<FH>;
@file=reverse @file;
Mark.
------------------------------
Date: Tue, 25 Nov 1997 08:31:07 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: Scott Anthony Hamilton <sah@uow.edu.au>
Subject: Re: read from end of file (by line)
Message-Id: <Pine.GSO.3.96.971125083028.26061L-100000@usertest.teleport.com>
On 25 Nov 1997, Scott Anthony Hamilton wrote:
> I'm in the process of writing a small module for reading from
> the end of the file line by line to the beginning. Much like
> $scalar = <FH> but in reverse.
>
> Before I go on, is there a perl trick which can accomplish this
> task with ease?
No. Making a module which can do this will almost certainly earn a place
in the FAQ. Thanks!
--
Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
Ask me about Perl trainings!
------------------------------
Date: Tue, 25 Nov 1997 16:19:54 +0000
From: Tobi <whatever@alligator-farm.com>
Subject: Segmentation fault
Message-Id: <347AFAA5.D397602E@alligator-farm.com>
"[lib.config.pm] Segmentation fault(core dumped)" is all I hear when I
try to install Perl 5.004 OR 5.003.
This happy message comes during the make procedure.
I try installing on a 1.2.13 linux kernel (RedHat distribution).
Can anybody help?
------------------------------
Date: Tue, 25 Nov 1997 08:23:58 -0800
From: Tom Phoenix <rootbeer@teleport.com>
To: Hans Juergen von Lengerke <lenkerWEEDS@dircon.co.uk>
Subject: Re: Sorting an 'almost but not really' complicated data structure
Message-Id: <Pine.GSO.3.96.971125082209.26061J-100000@usertest.teleport.com>
On Tue, 25 Nov 1997, Hans Juergen von Lengerke wrote:
> sub by_person
> #============
> {
> ($b[0] <=> $a[0] ) || #
> ($a[1] cmp $b[1] ) || # all these references
> ($a[2] cmp $b[2] ) || # seem to be wrong .. WHY???
You're referencing the global arrays @a and @b here; that's not what you
want. I think you mean to use arrows, to use references: $a->[1], for
example, instead of $a[1]. Hope this helps!
--
Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
Ask me about Perl trainings!
------------------------------
Date: Tue, 25 Nov 1997 05:51:22 -0800
From: "Michael A. Chase" <mchase@ix.netcom.com>
Subject: Re: trouble with libwww & friends in nonstandard libdir. alternatives to libwww ?
Message-Id: <65eo55$hmc@sjx-ixn9.ix.netcom.com>
You may have a perl that doesn't allow dynamic loading of modules. I was
just bit by this yesterday. Try this to see if you have the same
problem:
perl -we 'use IO::Socket;'
--
Mac :}) mchase@ix.netcom.com
David Bouman wrote in message <347968A8.1E0A@hq.tip.nl>...
>I'm trying to install libwww (5.15) and all it's needed companions:
>IO-1.1802, MD5-1.7, MIME-Base64-2.03 and libnet-1.0602. I'm currently
>blessed with a perl v5.0003 installation that lacks the required IO
>bundle. Being a non-priviledged user I installed the IO bundle in a
>non-standard lib directory of my own. So far so good. Next I tried to
>installing the libnet bundle, thinking a
>
>'perl5 -I<my-libdir> Makefile.PL PREFIX=<my-lib-basedir>'
>
>would do the trick. This however does not work, neither do several
>other variations i've tried to manipulate the @INC list. It keeps
>complaining with a
>
>'Can't locate IO/File.pm in @INC at Configure line 6.'
------------------------------
Date: Tue, 25 Nov 1997 15:16:42 -0600
From: Greg Derzay 4-6601 GSAO <derzayg@gsao.med.ge.com>
Subject: Variable Pattern Options
Message-Id: <347B403A.500F@gsao.med.ge.com>
In a Perl script, I'd like to have the following statement:
@matches = ($lines =~ /$pattern/$options);
However, the compiler will not allow me to use the $options variable.
I am using Perl version 5.004_01. It has no problem with using
a variable for the pattern, but chokes on the variable for the
options. Why can't I do this? I'm trying to write a UNIX script
to perform grep-like things in Perl, and need to have dynamic
options in pattern matching.
Thanks,
Greg
------------------------------
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 1370
**************************************