[10034] in Perl-Users-Digest
Perl-Users Digest, Issue: 3627 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Sep 3 13:05:28 1998
Date: Thu, 3 Sep 98 10:00:21 -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 Thu, 3 Sep 1998 Volume: 8 Number: 3627
Today's topics:
Beginner needs help <Jantijs@dds.nl>
Re: Beginner needs help <daniel@NOSPAMstridhammar.pp.se>
Re: Better Regular Expressions <jev@newton.pconline.com>
Re: BSDI 3.0 and Compiling Perl5.004_04 (Nathan V. Patwardhan)
CGI POSTing information to another CGI program. <frejos@cswnet.com>
Re: Defining constant values in Perl using #DEFINE summerfield@my-dejanews.com
Embedded Perl interpreter and redirection <pblom@ingr.com>
Re: Encryption & File Locking <merlyn@stonehenge.com>
Re: Flushing data to disk for open files bowler@eisner.decus.org
Re: HELP ! Compile/Link error for PERL on Solaris <eashton@bbnplanet.com>
How to create a file of known length? (Clint Harris)
Re: How to DownLoad a file w/o using the browser (Matthew Bafford)
Re: How to DownLoad a file w/o using the browser <yellowsun@geocities.com>
Re: How to run my scripts with Perl5 and not Perl 4 whe huntersean@hotmail.com
Insert .PL in .HTML? <cristo@consotech.se>
Is perl millennium compliant ? <georgelj@boat.bt.com>
Re: Is perl millennium compliant ? <rick.delaney@shaw.wave.ca>
Re: Is perl millennium compliant ? <strat@pacifier.com>
Re: man pages for win32 perl ()
Re: Perl compiler <see.my.address.below@domain.com>
Re: Perl DBI vs. LiveWire dturley@pobox.com
Re: Perl DBI vs. LiveWire <eashton@bbnplanet.com>
Re: Perl gurus opinion needed. [THANKS] <eashton@bbnplanet.com>
Re: Perl gurus opinion needed. (Michael J Gebis)
Re: Perl gurus opinion needed. <d-edwards@nospam.uchicago.edu>
Re: PERL script/module to read/check my mailbox file. (Nathan V. Patwardhan)
Perl Training Recommendations <Ian_Lowe@fanniemae.com>
Re: Popup login box (Andrew M. Langmead)
Questions about embedding Perl <msholman@compuserve.com>
Re: Repeating grouped substitutions bill_raynor@my-dejanews.com
Re: Repeating grouped substitutions bill_raynor@my-dejanews.com
Re: Where to get Net/Domain.pm? <versace@gianni.com>
Why use strict? <brian_wilson@om.cv.hp.com>
Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 3 Sep 1998 15:36:35 +0200
From: "Tijs" <Jantijs@dds.nl>
Subject: Beginner needs help
Message-Id: <6sm62v$4ie$1@newnews.nl.uu.net>
Hello,
After a calculation my script displays e.g. 270,7
this must be 270,70 because it's a currency.
or
270 this must be 270,00
$n =$premie; # $premie is the result of a calculation
$n =~ s/\./\,/g; # convert . into ,
$premie="<strong> $n</strong>";
print "$premie";
Thanks
------------------------------
Date: Thu, 03 Sep 1998 16:25:09 +0200
From: Daniel Stridhammar <daniel@NOSPAMstridhammar.pp.se>
Subject: Re: Beginner needs help
Message-Id: <35EEA6C5.59C4C078@NOSPAMstridhammar.pp.se>
Something like this should solve your problem:
$n = sprintf("%.2f", $premie);
/Dax
----------------------------------------------
> Hello,
>
> After a calculation my script displays e.g. 270,7
>
> this must be 270,70 because it's a currency.
>
> or
>
> 270 this must be 270,00
>
> $n =$premie; # $premie is the result of a calculation
> $n =~ s/\./\,/g; # convert . into ,
> $premie="<strong> $n</strong>";
> print "$premie";
>
> Thanks
------------------------------
Date: 3 Sep 1998 04:54:33 GMT
From: John Erjavec V <jev@newton.pconline.com>
Subject: Re: Better Regular Expressions
Message-Id: <6sl7e9$vsh$1@bell.pconline.com>
Mee <mee@mine.com> wrote:
:>> You are mistaken. You are a troll. Go away. <<
:
: If I may note: head banging is not likely to improve
: your comprehension ability or reduce your obvious pain.
Wow. I've done helpdesk duties, and never run across
anyone this dense. It can't be human. It can't be
alive. Nothing alive could be that obtuse. It's got
to be a bot. A bot designed to piss off Tom P. Still,
whoever wrote it could have at least had it make a
_little_ bit of sense.
-JEV
--
perl -le '$_="2756b636168402c62756050227568647f6e61402473757a4";
print reverse map chr hex reverse, /../g'
------------------------------
Date: Thu, 03 Sep 1998 13:40:04 GMT
From: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: BSDI 3.0 and Compiling Perl5.004_04
Message-Id: <U_wH1.6$k6.92935@news.shore.net>
small biz ecommerce (drifter@delrio.com) wrote:
: I'm opening myself up for a flame or two.
This is a fine question, I think.
: I'm trying to compile Perl5.004_04 on a BSDI 3.0x i386 system. It
: won't compile!
Definitely check the perl5-porters mailing list archives for a patch
(yes there was one posted about two months ago, I think). All you
really need is a hints/bsdos.sh patch (which I don't have on this
filesystem at this sec -- sorry).
Footnote: I've been successful building said Perl by using shlicc2
instead of cc or gcc/gcc2. OR, you can download perl5.004_04-m4
(pre-5.004_05) from CPAN and it should build just fine for you!
Good luck!
--
Nate Patwardhan|root@localhost
"Fortunately, I prefer to believe that we're all really just trapped in a
P.K. Dick book laced with Lovecraft, and this awful Terror Out of Cambridge
shall by the light of day evaporate, leaving nothing but good intentions in
its stead." Tom Christiansen in <6k02ha$hq6$3@csnews.cs.colorado.edu>
------------------------------
Date: Thu, 03 Sep 1998 09:55:17 -0500
From: Josh Freeman <frejos@cswnet.com>
Subject: CGI POSTing information to another CGI program.
Message-Id: <35EEADD5.322977F7@cswnet.com>
I need help with a small problem. I want to pass information using POST
from an HTML form. That program will save the information, then POST
that information to another CGI program.
The problem is the second step. I need to know how to send information
from my(the first) CGI program to the second CGI program using POST.
I want to avoid using GET, and also want to avoid have the user have to
press a second submit button.
Any Ideas?
Josh Freeman
frejos@cswnet.com
------------------------------
Date: Thu, 03 Sep 1998 13:09:06 GMT
From: summerfield@my-dejanews.com
Subject: Re: Defining constant values in Perl using #DEFINE
Message-Id: <6sm4di$9qq$1@nnrp1.dejanews.com>
In article <01bdd541$34d35ea0$0e5c5499@user.ncr.com>,
"David Mohorn" <david.mohorn@sourcebbs.com> wrote:
> Does anyone know the best way of defining constant "preprocessor" type
> definitions in Perl similar to C? For example:
>
> #define RTS = 1
> #define CTS = 2
> #define DTR = 3
>
There is a perl module for constants - called constant.pm which comes with
the standard distribution.
I have also written a module - Const.pm which I posted to
comp.lang.perl.modules recently. (Its line ends got messed up by DejaNews
but the pod is readable so I could send it to you if you wanted it.)
I certainly like using constants in programming wherever possible
because I find it such an aid to change.
Regards,
Mark.
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Thu, 03 Sep 1998 15:24:48 +0200
From: Peter Blom <pblom@ingr.com>
Subject: Embedded Perl interpreter and redirection
Message-Id: <35EE98A0.4248229F@ingr.com>
I embedded a Perl interpreter in my C++ Win32 GUI application. From this
application
I need to execute Perl script files. I used the example in the perlembed
document as a start point and it works just fine. What I am looking for
now is a way to capture the output from the Perl interpreter to stdout
and stderr and use it in my application.
Some hints will be greatly appreciated,
Thanks.
Peter Blom
------------------------------
Date: Thu, 03 Sep 1998 15:04:12 GMT
From: Randal Schwartz <merlyn@stonehenge.com>
Subject: Re: Encryption & File Locking
Message-Id: <8caf4h1bms.fsf@gadget.cscaper.com>
>>>>> "Mark-Jason" == Mark-Jason Dominus <mjd@op.net> writes:
Mark-Jason> I remember thinking exactly this same thing about a year ago. I was
Mark-Jason> writing a Makefile, and I had
Mark-Jason> target: $(SOURCE)
Mark-Jason> ./munge < $(SOURCE) >target
Mark-Jason> which was fine. Then I thought a little further ahead, and changed it to
Mark-Jason> target: $(SOURCE)
Mark-Jason> cat $(SOURCE) | ./munge > target
Mark-Jason> because I thought SOURCE might someday include multiple files.
Mark-Jason> Later I asked Randal what he thought about it, but I don't remember
Mark-Jason> the answer.
I don't remember being asked, so that makes two of us. :)
I don't have a problem with the above where $(SOURCE) might be zero or
more files. I just think it's *extremely* silly, demonstrates
cluelessness, and is a tiny bit inefficient when there is clearly only
*one* file to "cat". How can you "con-cat-enate" *one* file?
--
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn@teleport.com)
Web: <A HREF="http://www.stonehenge.com/merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me
------------------------------
Date: Thu, 3 Sep 1998 13:07:14 GMT
From: bowler@eisner.decus.org
Subject: Re: Flushing data to disk for open files
Message-Id: <1998Sep3.090714.1@eisner>
In article <35edb0b6.13749265@news.btinternet.com>, Gellyfish@btinternet.com (Jonathan Stowe) writes:
> On Wed, 2 Sep 1998 20:00:25 GMT, bowler@eisner.decus.org wrote :
>
>>Either I'm blind or it's late or this isn't in the faq so
>>
>>I have a perl script that does...
>>
>> open (MYOUT, ">file.out");
>>
>>and then goes on to do a bunch of
>>
>> print MYOUT $stuff
>>
>>over the next several hours.
>>
>>Is there any way in perl to get it to flush what's been written so that I can
>>look at the file to track progress? I realize I could close MYOUT and re-open
>>it using ">>file.out" but that seems so in-elegant...
>>
>>ideally, I'd like a "flush every n minutes" but a "flush now" would also work
>>for me...
>>
>
> I would suggest looking at the perlvar documentation searching for
> "flush" or "FLUSH" - I am sure this will lead you to enlightenment.
Well my normal first stop is the camel book which doesn't list the word "flush"
in the index, maybe I need to change the way I work :-)
> You might also look at the first item in perlfaq5 whilst you are
> waiting for your eye test ;-}
Well I am seeing the eye doctor at 11AM today, how did you know???
Bruce
------------------------------
Date: Thu, 03 Sep 1998 15:59:04 GMT
From: Elaine -HappyFunBall- Ashton <eashton@bbnplanet.com>
Subject: Re: HELP ! Compile/Link error for PERL on Solaris
Message-Id: <35EEBA72.C92D621E@bbnplanet.com>
Mohan Mandava wrote:
> I am getting the following compile/link error when I install
> perl5.00404 on Solaris 2.6. I have the gcc compiler (ver. 2.7.2.3) on my
> Sun.
>
have you had problems compiling anything else? im assuming you got this
package off of the sun freeware for 2.6 site. if not go to
http://sunfreeware.com/solaris_2.6.html.
uninstall the old package and get a newer version. also, be sure that
you go back through the config log and see what it could have been
missing/griping about. id venture a guess that its either a config
problem or a mungled compiler.
good luck.
e.
------------------------------
Date: Thu, 3 Sep 1998 08:12:01 -0700
From: charris@gte.net (Clint Harris)
Subject: How to create a file of known length?
Message-Id: <6smblt$knr$1@news-2.news.gte.net>
Hi,
Does anyone know how to create a file of a known length filled
with random data (Sort of like od in Unix)? Thanks.
-Clint
------------------------------
Date: Thu, 3 Sep 1998 10:00:37 -0400
From: dragons@scescape.net (Matthew Bafford)
Subject: Re: How to DownLoad a file w/o using the browser
Message-Id: <MPG.10586b0ee894a77a989688@news.south-carolina.net>
In article <35EDED90.4487@bellatlantic.net> on Thu, 03 Sep 1998
01:15:36 +0000, Vasant Kumar (vasant@bellatlantic.net) pounded in
the following text:
=> Hi -
=>
=> Can someone refer me to some program, script, or code that will let me
=> download a file from the given URL site without using the browser. I do
=> have access to Unix and Windows 95 machine, and can use Perl, C, or
=> Java.
Is this simple enough?
perl -MLWP::Simple -e "print get join ' ', @ARGV" http://zzz.com
;-)
=> Thanks,
No problem.
=> Vasant
--Matthew
------------------------------
Date: Thu, 03 Sep 1998 11:39:39 -0700
From: Yellow Sun <yellowsun@geocities.com>
Subject: Re: How to DownLoad a file w/o using the browser
Message-Id: <35EEE26B.BBEBCA32@geocities.com>
Matthew Bafford wrote:
> In article <35EDED90.4487@bellatlantic.net> on Thu, 03 Sep 1998
> 01:15:36 +0000, Vasant Kumar (vasant@bellatlantic.net) pounded in
> the following text:
> => Hi -
> =>
> => Can someone refer me to some program, script, or code that will let me
> => download a file from the given URL site without using the browser. I do
> => have access to Unix and Windows 95 machine, and can use Perl, C, or
> => Java.
>
> Is this simple enough?
>
> perl -MLWP::Simple -e "print get join ' ', @ARGV" http://zzz.com
>
> ;-)
>
> => Thanks,
>
> No problem.
>
> => Vasant
>
> --Matthew
Is there any crawler by perl? Thanks.
--yellowsun
------------------------------
Date: Thu, 03 Sep 1998 16:04:12 GMT
From: huntersean@hotmail.com
Subject: Re: How to run my scripts with Perl5 and not Perl 4 when both are installed in the same place
Message-Id: <6smels$nco$1@nnrp1.dejanews.com>
First, you can do...
require 5;
...which will prevent your script being run on an earlier version.
You can also do...
print $];
...in your script which will prove which perl is running it. If your shell is
actually running it with perl 4 even in spite of your first line, I don't know
why.
Regards
Sean Hunter
In article <6skacp$16c0$1@news.doit.wisc.edu>,
fmiramon@students.wisc.edu (Fernando) wrote:
> Both versions are installed in /usr/bin/
> .. so if i run a script it automatically tries to run perl4 and not perl5 even
> if I have " #!/usr/bin/perl5 " at the top of the script.
> How do i know is running perl4 and not perl5?
> Because some libraries are not available in perl 4 and everytime I try to run
> the script by tyiping "name.pl" I get:
>
> "use:: not found"
>
> but if i do "perl5 name.pl" the script runs nicely.
>
> Thanks in advance...
>
>
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Thu, 03 Sep 1998 18:19:54 +0100
From: Cristsbal Hormazabal <cristo@consotech.se>
Subject: Insert .PL in .HTML?
Message-Id: <35EECFBA.709E@consotech.se>
Hi!
I've made a voting script(vote.pl). I want to "call" vote.pl
and insert it in to my html file(vote.html) but I can't make it! :-(
This Is what I want my HTML page to do:
<TITLE> Vote now! </TITLE>
<BR><BR>
<!-- Here my script should be INSERTED in to the HTML text -->
YES = 44%
NO = 20%
? = 1%
<!-- Script ends -->
<H1> This was my voting script</H1>
/Send me your tip(s) to cristo@consotech.se
PS"
I have tried this and it does not work:
<!--#exec cgi="/cgi-bin/cgiwrap/r3988/vote.pl"-->
"DS
------------------------------
Date: Thu, 03 Sep 1998 16:12:50 +0100
From: Les George <georgelj@boat.bt.com>
Subject: Is perl millennium compliant ?
Message-Id: <35EEB1F2.34BD@boat.bt.com>
Does snybody knwo if the current releases of perl have been certified
for millennium compliance ?
Les George
BT WebWorld
------------------------------
Date: Thu, 03 Sep 1998 15:50:14 GMT
From: Rick Delaney <rick.delaney@shaw.wave.ca>
Subject: Re: Is perl millennium compliant ?
Message-Id: <35EEBC38.BDE932BD@shaw.wave.ca>
Les George wrote:
>
> Does snybody knwo if the current releases of perl have been certified
> for millennium compliance ?
>
Not only certified, but they have won numerous awards for Y2K
excellence.
--
Rick Delaney
rick.delaney@shaw.wave.ca
------------------------------
Date: Thu, 3 Sep 1998 08:58:58 -0700
From: "Christian Brink" <strat@pacifier.com>
Subject: Re: Is perl millennium compliant ?
Message-Id: <35eebcd5.0@news.pacifier.com>
Les George wrote in message <35EEB1F2.34BD@boat.bt.com>...
>Does snybody knwo if the current releases of perl have been certified
>for millennium compliance ?
>
>Les George
>BT WebWorld
Are you FAQ reading compliant.....
This question is asked 3X's a week please do you part
to stop this and RTFF.
------------------------------
Date: 3 Sep 1998 14:15:59 GMT
From: impactid@pantheon.yale.edu ()
Subject: Re: man pages for win32 perl
Message-Id: <6sm8av$jtm@jupiter.planet.net>
I tried these but keep getting "No documentation found for *". any ideas?
I'm on NT4 (workstation)
Thanks
Charlie (cwu@geocities.com)
ListAdmin (owner-www-countries@mch.sni.de) wrote:
: [mailed and posted]
: Daniel or Shelly wrote:
: >
: > Where are the man pages for win32 perl? Why doesn't it work
: > when I want to look up a perl command with the man pages
: > on my windows 98 computer and I type "man (perl command"
: > after the "C:\perl\" prompt?
: Windows 98 does not know who "man" is. Try perldoc instead.
: Examples:
: perldoc -f binmode
: perldoc perlvar
: perldoc strict
: perldoc File::Find
: --
: Cheers,
: --haj--
------------------------------
Date: 03 Sep 1998 09:56:16 -0400
From: Bruce Barnett <see.my.address.below@domain.com>
Subject: Re: Perl compiler
Message-Id: <yek67f5qozj.fsf@grymoire.birch>
joe.mcmahon@gsfc.nasa.gov (Joe McMahon) writes:
> Why, if you have created software system X, investing a lot of money in
> programmer time, facilities, etc., and believe that software system X is
> worth more money, do you not think investing in a few hours of lawyer time
> to have a licensing agreement drawn up is a good idea? If the program is
> really good, you should be able to get people to pretty near sign their
> souls away to use it.
But what if end user don't know how good something is? What if
the customer wants to package a demo version of it to improve the
marketability of it?
I've seen licensing agreements take weeks for both parties to sign.
When a customer has a hundred packages to investigate, they don't
want to spend that much time for each one.
--
Bruce <barnett at crd. ge. com> (speaking as myself, and not a GE employee)
------------------------------
Date: Thu, 03 Sep 1998 13:17:38 GMT
From: dturley@pobox.com
Subject: Re: Perl DBI vs. LiveWire
Message-Id: <6sm4ti$an7$1@nnrp1.dejanews.com>
In article <35ed48d8.1881485@news.enteract.com>,
>Has anybody out there done a
> comparison or have an opinion? Thanks!
Having done LiveWire development for almost 2 years, my vote would be for
Perl. My experience with ES on Solaris, using both sybase and M$-SQL server
dbs shows me that LW is broken and full of bugs. Netscape is unresponsive to
bug reports or help requests. If you read Netscape's LW newgroup you'll find
the same problems being reported over and over with no fixes from NS.
When I pressed a tech support person for info on how a problem is handled, he
told me that they'd post it to an internal BBS, and if someone looked at it
and decided to try and find a fix, they'd do it. Otherwise nothing would
really happen.
I recently had a private converstion with a Netscape employee who said that
Netscape wasn't going to even support LW anymore, turning it's attention to
Application server instead.
If you have a choice, don't choose LW.
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Thu, 03 Sep 1998 15:50:47 GMT
From: Elaine -HappyFunBall- Ashton <eashton@bbnplanet.com>
Subject: Re: Perl DBI vs. LiveWire
Message-Id: <35EEB881.29170FC2@bbnplanet.com>
> I recently had a private converstion with a Netscape employee who said that
> Netscape wasn't going to even support LW anymore, turning it's attention to
> Application server instead.
this is a handy tidbit. there are few people who use livewire well here
and its like pulling teeth when it breaks. the super-duper-ultra-nifty
support we are supposed to be paying for has been limited in my view as
well. hadn't heard about dumping it though. time to migrate those
customers to something real and stable.
e.
------------------------------
Date: Thu, 03 Sep 1998 15:43:37 GMT
From: Elaine -HappyFunBall- Ashton <eashton@bbnplanet.com>
Subject: Re: Perl gurus opinion needed. [THANKS]
Message-Id: <35EEB6D3.72185B52@bbnplanet.com>
> You provide so many possibilities, thanks many more for your
> HUMOR. Today is a dark time for Russia, and humor is a real help
> at least for me.
i don't remember most of the russian i cruised through in college to
fulfill a twisted 2 lang. science requirement, otherwise id say
something witty in your vernacular. hang in there and keep laughing.
self-amuse is also handy.
> FYI, russian people usually says 'hacker' like it was written 'huckerr'
> and 'er' in the end sounds like in the 'ERRor'.
languages are so cool. id bet translators have a great time.
e.
(personally, i like perl twister...)
------------------------------
Date: 3 Sep 1998 15:27:54 GMT
From: gebis@welsh.ecn.purdue.edu (Michael J Gebis)
Subject: Re: Perl gurus opinion needed.
Message-Id: <6smchq$ors@mozo.cc.purdue.edu>
mjd@op.net (Mark-Jason Dominus) writes:
}In article <35EDB96A.C276ED31@bbnplanet.com>,
}Elaine -HappyFunBall- Ashton <eashton@bbnplanet.com> wrote:
}>perl jerky-boy
}>perl tiger
}>[etc.]
}At the conference, when we were printing certificates, people asked us
}for the darndest things. We certified people as Perl Programmers,
}Perl Studmuffins, Perl Gurus, Perl Hackers, Perl Engineers, Perl
}Experts, Perl Wizards, Perl Poets, Perl Porters, Perl Pornographers,
}and Perl Pimps.
Perl Hurler.
--
Mike Gebis gebis@ecn.purdue.edu mgebis@eternal.net
------------------------------
Date: Thu, 3 Sep 1998 15:59:13 GMT
From: Darrin Edwards <d-edwards@nospam.uchicago.edu>
Subject: Re: Perl gurus opinion needed.
Message-Id: <tgd89dp4q6.fsf@noise.bsd.uchicago.edu>
Elaine -HappyFunBall- Ashton <eashton@bbnplanet.com> writes:
> i could go on...this is fun. ideas anyone?
>
> e.
Perl diver?
Darrin
------------------------------
Date: Thu, 03 Sep 1998 13:35:20 GMT
From: nvp@shore.net (Nathan V. Patwardhan)
Subject: Re: PERL script/module to read/check my mailbox file.
Message-Id: <sWwH1.5$k6.92935@news.shore.net>
jteens@my-dejanews.com wrote:
: I'm looking for perl script/module for handle my mailbox file directly
: (/var/spool/mail/mymailbox). Any help would be mostly appreciated.
Mail::Folder should work for you! It supports a number of different
mailbox formats, including mbox.
--
Nate Patwardhan|root@localhost
"Fortunately, I prefer to believe that we're all really just trapped in a
P.K. Dick book laced with Lovecraft, and this awful Terror Out of Cambridge
shall by the light of day evaporate, leaving nothing but good intentions in
its stead." Tom Christiansen in <6k02ha$hq6$3@csnews.cs.colorado.edu>
------------------------------
Date: Thu, 03 Sep 1998 10:44:12 -0400
From: Ian Lowe <Ian_Lowe@fanniemae.com>
Subject: Perl Training Recommendations
Message-Id: <35EEAB3C.47C37B56@fanniemae.com>
Is anyone familiar with any sources of GOOD perl training in the
Washington, DC area?
Thanks,
Ian
------------------------------
Date: Thu, 3 Sep 1998 14:02:56 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: Popup login box
Message-Id: <EypoCw.97y@world.std.com>
"Felix Tarnarider" <felix@tarnconsulting.com> writes:
>How do you get the login box to popup in IIS 4, using Perl?
Since Perl doesn't have a "login box", you might be better off asking
in a newsgroup that discusses "IIS 4" (which if I remember correctly
is the Windows NT web server) Maybe
<URL:news://comp.infosystems.www.servers.ms-windows>
or
<URL:news://microsoft.public.inetserver.iis>
would be better places to check.
--
Andrew Langmead
------------------------------
Date: 3 Sep 1998 15:12:04 GMT
From: "Michael Shayne Holman" <msholman@compuserve.com>
Subject: Questions about embedding Perl
Message-Id: <01bdd74d$2324a660$32311ed0@michael_holman.magicnet.net>
I have read through the perlembed and related documents but I have a few
questions. I am hoping to use Perl to enhance an event driven system that
communicates over GPIB. I have defined a configuration file that is similar
to win.ini format. Each event in the overarching C++ code is handled by a
separate function. For each of these there can be a section (i.e.
"[section]") in the config file. Many of the actions to be taken are simple
and are defined by using the simple "tag=thing" syntax. For more complex or
non-standard operations I wish to use Perl. I would like the Perl scripts
to reside in the same config file with their own sections. In addition I
will allow calling of external Perl files. What I cannot see in the
subroutine calling functions is where the location of the Perl script it
given. In other words: the subroutine name is given but not a file name.
I'm sure I must be missing something basic but I'm just not seeing it.
It seems like I could use something like the perl_eval functions given in
the Perl documentation except they are referred to as "very brittle", and I
did not see examples of the improved technique for later revisions of Perl.
Also the perl_call_argv looks like a good generalized interface for this
application but again, I don't know where it looks for the subroutine.
In addition to the C++ calling perl I would like to add functions to Perl
to allow it to call C++ class functions. The idea is to allow users to
customize operation of the system without the need for the process of
adding a C++ module to the very large mother and complex program. Are there
any problems with calling a Perl script from C that then calls C functions
in the program that called it?
BTW this is running on SunOS and needs to be portable to Solaris.
Thanks in advance,
Michael Holman
------------------------------
Date: Thu, 03 Sep 1998 14:00:09 GMT
From: bill_raynor@my-dejanews.com
Subject: Re: Repeating grouped substitutions
Message-Id: <6sm7d8$djm$1@nnrp1.dejanews.com>
In article <MPG.1050d1153d94e997989775@nntp.hpl.hp.com>,
lr@hpl.hp.com (Larry Rosler) wrote:
> [Posted to comp.lang.perl.misc and a copy mailed.]
>
> In article <6s78br$bfv$1@gatekeep.kcc.com> on 28 Aug 1998 21:44:27 GMT,
> Bill Raynor (B12349) <braynor@jupiter.kcc.com> says...
> > I occasionally recieve supposedly comma delimited data with missing
> > comma's:
> > 1.2,3.4 5.6,7.8 9.0
> > and would like to "fix it" so that it becomes comma delimited:
> > 1.2,3.4,5.6,7.8,9.0
> > However:
> > s/(\d+\.\d*)\s+(\d+\.\d*)/\1\,\2/g;
> > only fixes the first one (3.4 5.6 becomes 3.4,5.6).
>
> That regex works for me, though the \1 and \2 should be $1 and $2, as the
> '-w' flag would inform you. What version of perl are you using (`perl -
> v`)?
>
> --
> (Just Another Larry) Rosler
> Hewlett-Packard Laboratories
> http://www.hpl.hp.com/personal/Larry_Rosler/
> lr@hpl.hp.com
>
I'm using 5.004 on HP-UX, but was working from my Perl 4 manuals.
I should also mention that the line includes valid header fields with
terms like 1.2345 cubits, which need to be kept together. They describe
the condition under which the data was read.
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Thu, 03 Sep 1998 14:18:15 GMT
From: bill_raynor@my-dejanews.com
Subject: Re: Repeating grouped substitutions
Message-Id: <6sm8f6$ese$1@nnrp1.dejanews.com>
In article <6s7d56$qt3$1@mathserv.mps.ohio-state.edu>,
ilya@math.ohio-state.edu (Ilya Zakharevich) wrote:
> [A complimentary Cc of this posting was sent to Bill Raynor (B12349)
> <braynor@jupiter.kcc.com>],
> who wrote in article <6s78br$bfv$1@gatekeep.kcc.com>:
> > s/(\d+\.\d*)\s+(\d+\.\d*)/\1\,\2/g;
> > only fixes the first one (3.4 5.6 becomes 3.4,5.6). It there any way
> > to force perl to change all the instances, other than:
>
> Lookahead is your friend.
>
> s/(\d+\.\d*)\s+(?=\d+\.\d*)/\1\,/g;
>
> Ilya
>
All that from a ?= ! Thanks, I'll try it.
Bill Raynor
braynor@kcc.com
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Thu, 03 Sep 1998 21:18:46 +0800
From: 8\(F&@ <versace@gianni.com>
Subject: Re: Where to get Net/Domain.pm?
Message-Id: <35EE9736.7264@gianni.com>
Thanks and where to find libnet?
I R A Aggie wrote:
>
> In article <35ED2E67.642D@gianni.com>, 8\(F&@ <versace@gianni.com> wrote:
>
> + The error is "Can't locate Net/Domain.pm". I've tried to find it at
> + CPAN but the web page said Net/Domain.pm should be included in libnet
> + and I don't have libnet either.
>
> Perhaps you should consider installing the libnet package first?
>
> James
------------------------------
Date: Thu, 03 Sep 1998 09:31:45 -0700
From: Brian Wilson <brian_wilson@om.cv.hp.com>
Subject: Why use strict?
Message-Id: <35EEC471.988@om.cv.hp.com>
I'm trying to convince a friend that using the 'use strict' directive is
a good idea. It forces the coder to scope variables to a specific block
making debugging easier and warning of unsafe variable declarations.
Both are good things and enough for me to adopt the practice.
What are some other good reasons I can use in my argument?
Brian Wilson
HP Corvallis
------------------------------
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 3627
**************************************