[6784] in Perl-Users-Digest
Perl-Users Digest, Issue: 409 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu May 1 18:17:15 1997
Date: Thu, 1 May 97 15:00:23 -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, 1 May 1997 Volume: 8 Number: 409
Today's topics:
[++] Re: Question: regexp reduction? (Quentin Fennessy)
Re: Best way to read from STDIN twice? <rootbeer@teleport.com>
capturing user info <perry@perrylogic.com>
Re: Changing FORMAT filehandles - <rootbeer@teleport.com>
Difficulty building IO module under Solaris <abennett@stonehill.edu>
Re: Extracting pseudo HTML from string <Jan.Krynicky@st.ms.mff.cuni.cz>
Re: hashes, -d's "x", and Data::Dumper (Ilya Zakharevich)
Re: Help... How do I Install Perl 5 for NT and MIIS? <gordon.leslie.mcdorman@sap-ag.de>
help: perl docs in german <sniper@on-line.de>
how to compile and execute a program from perl <dasoju@cnde.iastate.edu>
Launching Cold Fusion URL from perl script <StefanEnd@NoSpam.DeathsDoor.com>
Re: Losing clpm regulars (was Re: Loosing...) (brian d foy)
Re: Notice to antispammers <rsi@earthling.net>
Re: Notice to antispammers <rsi@earthling.net>
Re: Notice to antispammers (Daniel Ligon)
Re: Notice to antispammers (I R A Aggie)
Re: NT port of Perl 5 (Jeff Stampes)
Re: Perl 5.003 bug??? <mcampbel@tvmaster.turner.com>
Perl and fixing dynamic URLS TempStephenByrne@extonpo.bentley.com
Re: Perl auto-replier (Jeff Yoak)
Re: Perl database search and page generation <rootbeer@teleport.com>
perl2c compiler ()
Re: pre-RFD: comp.lang.perl.{data-structure,inter-proce (Timothy Hall)
Re: pre-RFD: comp.lang.perl.{data-structure,inter-proce (Evan Kirshenbaum)
Re: pre-RFD: comp.lang.perl.{data-structure,inter-proce (Tung-chiang Yang)
Re: question: how to trim a string passed via hard refe (Jeff Stampes)
Re: request for help (Quentin Fennessy)
Re: SIMPLE REG-EXP Please Help! <rootbeer@teleport.com>
Re: variable substitution (brian d foy)
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 1 May 1997 21:18:59 GMT
From: quentin@remington.amd.com (Quentin Fennessy)
Subject: [++] Re: Question: regexp reduction?
Message-Id: <5kb1c3$8f$1@amdint2.amd.com>
In article <33665DA6.41C67EA6@fir.fbc.com>,
Ying Chen <yingchen@fir.fbc.com> wrote:
[...]
>let say if one has a arbiturary regexp -
>is there a way (maybe algorithm) to tell if
>the regexp can be reduced/simplified??
I don't think there is an automatic technique for reducing
or simplifying regexps. Of course, there is still Jeffrey...
And reading his book.
--
Quentin Fennessy AMD, Austin Texas
------------------------------
Date: Thu, 1 May 1997 14:05:51 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: Dan Schmidt <dfan@thecia.net>
Subject: Re: Best way to read from STDIN twice?
Message-Id: <Pine.GSO.3.96.970501135002.22299E-100000@kelly.teleport.com>
On 29 Apr 1997, Dan Schmidt wrote:
> I am writing a filter in Perl that makes two passes over its input.
> What I'm wondering is, what is the approved way to read STDIN twice?
> The two straightforward things I could do are to 1) slurp the whole
> file into an array, but I'd like to not waste any more space than
> necessary, and 2) copy STDIN to a file, then operate on that, which
> seems wasteful, as much of the time STDIN may actually already be a
> file.
I don't know whether it would work, but if nobody has a better answer, you
might be able to use something like this to tell whether the input is
seekable. If it's not seekable, you could copy it to a file. This seems to
work on my system. Hope this helps!
$seekable = (!-t STDIN) && (seek STDIN, 0, 1);
-- Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.lightlink.com/fors/
------------------------------
Date: 1 May 1997 14:00:07 -0700
From: Perry Frost <perry@perrylogic.com>
Subject: capturing user info
Message-Id: <336904C9.4D1C@perrylogic.com>
I am looking for a way to run a CGI script as a SSI when a visitor comes
to a page. I want to capture as much info about that visitor as I can
to a log file. I am already doing this, but am only getting info about
the server the visitor is using. Is there any way to get more info? I
have tried capturing info using "IDENTD" but all I get from all visitors
is "unknown". Is there any better method?
Please respond via Email or via post AND Email.
Thanks ...
Perry
--
* I am NOT unemployed... I'm a CONSULTANT - Dogbert *
* http://www.perrylogic.com *
------------------------------
Date: Thu, 1 May 1997 14:08:28 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: John McMurry <mcmurry@openmarket.com>
Subject: Re: Changing FORMAT filehandles -
Message-Id: <Pine.GSO.3.96.970501140646.22299F-100000@kelly.teleport.com>
On Tue, 29 Apr 1997, John McMurry wrote:
> I am attempting to change the format that
> STDOUT uses so that a HEADER can be written.
It sounds as if you want STDOUT_TOP. It's documented in perlform(1), if
I'm not mistaken. Hope this helps!
-- Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.lightlink.com/fors/
------------------------------
Date: Thu, 01 May 1997 15:54:03 +0100
From: Aaron Bennett <abennett@stonehill.edu>
Subject: Difficulty building IO module under Solaris
Message-Id: <3368AE6A.3B1C@stonehill.edu>
Hello:
I'm having a hair-pulling time installing the CPAN IO:: library into
Perl 5.003 under Solaris 2.5.1 with GCC.
This is what happens:
> # perl Makefile.PL
> Checking for Socket...ok
> Checking if your kit is complete...
> Looks good
> Writing Makefile for IO
> # make
> cp IO/Pipe.pm ./blib/lib/IO/Pipe.pm
> cp IO/File.pm ./blib/lib/IO/File.pm
> cp IO/Select.pm ./blib/lib/IO/Select.pm
> cp IO.pm ./blib/lib/IO.pm
> cp IO/Socket.pm ./blib/lib/IO/Socket.pm
> cp IO/Seekable.pm ./blib/lib/IO/Seekable.pm
> cp IO/Handle.pm ./blib/lib/IO/Handle.pm
> /usr/local/bin/perl -I/opt/GNUperl5/lib/sun4-solaris/5.003 -I/opt/GNUperl5/lib /
> opt/GNUperl5/lib/ExtUtils/xsubpp -typemap /opt/GNUperl5/lib/ExtUtils/typemap IO
> .xs >IO.tc && mv IO.tc IO.c
> Please specify prototyping behavior for IO.xs (see perlxs manual)
> gcc -c -O -DVERSION=\"1.15\" -DXS_VERSION=\"1.15\" -I/opt/GNUperl5/lib/sun
> 4-solaris/5.003/CORE IO.c
> Running Mkbootstrap for IO ()
> chmod 644 IO.bs
> LD_RUN_PATH="" ld -o blib/arch/auto/IO/IO.none IO.o
> ld: warning: cannot find entry symbol _start; defaulting to 00010074
> IO.o: In function `not_here':
> IO.o(.text+0xc): undefined reference to `Perl_croak'
> IO.o: In function `constant':
> IO.o(.text+0x40): undefined reference to `strcmp'
> IO.o(.text+0x58): undefined reference to `strcmp'
> IO.o(.text+0x78): undefined reference to `strcmp'
> IO.o(.text+0x9c): undefined reference to `strcmp'
> IO.o(.text+0xc0): undefined reference to `strcmp'
> IO.o(.text+0xe0): more undefined references to `strcmp' follow
The ugliness continues for about six pages.
Does anyone know what stupid thing I'm doing wrong?
- Help!
--
| Aaron Bennett
| Internet Services Coordinator
| Stonehill College Department of Academic Computing
| http://www.stonehill.edu
| "The most precious things remain unseen."
------------------------------
Date: Thu, 01 May 1997 22:07:08 -0700
From: Jan Krynicky <Jan.Krynicky@st.ms.mff.cuni.cz>
To: Todd Wallace <twallace@nicom.com>
Subject: Re: Extracting pseudo HTML from string
Message-Id: <3369767C.317@st.ms.mff.cuni.cz>
Todd Wallace wrote:
>
> I have a string that looks like
> "asdfafasdf<FNAME>Tom</FNAME>sdfsdfsfsd"
> and I want to extract the text between the <FNAME> and </FNAME> tags.
> I have been trying to do with with split, substitute (s///) etc., and I can't
> figure out how to do this.
>
> Any help greatly appreciated.
Look here http://www.ms.mff.cuni.cz/~jkry3025/works/htmlelem.eng.shtml
Hi, Jenda
------------------------------
Date: 1 May 1997 19:59:15 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: hashes, -d's "x", and Data::Dumper
Message-Id: <5kasmj$mgd$1@mathserv.mps.ohio-state.edu>
[A complimentary Cc of this posting was sent to Mike Campbell
<mcampbel@tvmaster.turner.com>],
who wrote in article <r5911zgoky.fsf@tvmaster.turner.com>:
> ilya@math.ohio-state.edu (Ilya Zakharevich) writes:
>
>
> > > Given:
> > > use Data::Dumper;
> > >
> > > $myhash{'A'}{'0'}{'X'} = "hello";
> > > $myhash{'A'}{'0'}{'W'} = "world";
> > >
> > > $myhash{'A'}{'1'} = "now";
> > > $myhash{'A'}{'1'}{'X'} = "is";
> > > $myhash{'A'}{'1'}{'W'} = "the";
> >
> > Your code is broken, you forgot to put
> > use strict;
> > at the top (as anyone should- unless you understand the complications you
> > get into if you drop it).
>
> And how exactly does the lack of "use strict;" in this context "break"
> the code?
Insert it, and you will see.
Ilya
------------------------------
Date: Thu, 1 May 1997 21:38:28 GMT
From: Gordon McDorman <gordon.leslie.mcdorman@sap-ag.de>
To: support@cyberglobe.net
Subject: Re: Help... How do I Install Perl 5 for NT and MIIS?
Message-Id: <uu3kmlvor.fsf@sap-ag.de>
"Network/Systems Technician" <support@cyberglobe.net> writes:
> I need help to install Perl 5 on Windows NT and MIIS. I have tried and
> still does not work.
See the Win32Perl FAQ:
<URL:http://www.endcontsw.com/people/evangelo/Perl_for_Win32_FAQ.html>
Specifically, the sections on "Availability and Installation" and
"Web Server Configuration and Troubleshooting" are of significance.
--
--------------------------------------------------------------
The opinions expressed above are mine, not my employer's.
gordon.leslie.mcdorman@sap-ag.de
------------------------------
Date: Thu, 01 May 1997 21:47:07 +0200
From: Sniper <sniper@on-line.de>
Subject: help: perl docs in german
Message-Id: <3368F33B.1E51@on-line.de>
hi everybody,
i'm looking for a perl documentation in german language
(book, html, etc.).
can anybody help me?
thanks,
sniper
------------------------------
Date: Thu, 01 May 1997 15:27:06 -0500
From: Kiran <dasoju@cnde.iastate.edu>
Subject: how to compile and execute a program from perl
Message-Id: <3368FC9A.446B@cnde.iastate.edu>
hi
i want to write a perl script which at times compiles and executes a
program how can i do it
please let me know
thanks
bye
kiran
--
************************************************************************
"There are two kinds of people: those who do the work and those who
take the credit. Try to be in the first group; there is less
competition there." - Indira Gandhi
KIRAN KUMAR DASOJU Email: dasoju@iastate.edu
218 N.Hyland #201 dasoju@cnde.iastate.edu
AMES,IOWA-50014 phone:home:(515)-268-0842
office:(515)-294-4915
homepage(under construction):http://www.public.iastate.edu/~dasoju/
************************************************************************
------------------------------
Date: Thu, 01 May 1997 21:29:08 GMT
From: Stefan <StefanEnd@NoSpam.DeathsDoor.com>
Subject: Launching Cold Fusion URL from perl script
Message-Id: <336906ec.1628306@NNTP.netcomuk.co.uk>
Hi,
Here's something I'm trying to figure out how to do but can't think of
a clever way:
I need to get a perl script to launch a URL and pass a few parameters
on to it. The problem as I see it is, the script needs to properly
launch the URL (as with a browser), not just pass it on to a browser
(like formail.pl does with the return URL, for instance).
Why? Well, there's a little text file the contents of which needs to
be passed on from a UNIX box to a Cold Fusion DB on an NT box once a
day, and I figured the way to do it is to run a perl script in the
UNIX cron that passes on the text line by line attached to the URL of
the Cold Fusion page. Of course, for the Cold Fusion to work, the URL
of the page needs to be launched, not just passed on.
Any ideas???
--
Stefan ....... (Remove NoSpam. from Email when replying)
--
http://members.tripod.com/~esend/
------------------------------
Date: Thu, 01 May 1997 16:21:12 -0400
From: comdog@computerdog.com (brian d foy)
Subject: Re: Losing clpm regulars (was Re: Loosing...)
Message-Id: <comdog-0105971621120001@nntp.netcruiser>
In article <E9IDzC.LCt@presby.edu>, jtbell@presby.edu (Jon Bell) wrote:
> I'd support some kind of automoderation measure myself. Have you
> investigated comp.infosystems.www.authoring.cgi? They recently converted
> to an automoderated group. I think the basic idea is to "hold" all
> first-time postings from newcomers and e-mail them a copy of the FAQ,
> along with instructions on how to "release" their posting if they still
> want to go through with it. I don't read that group myself, so I don't
> know how well this has worked in practice.
c.i.w.a.cgi isn't really moderated - first time posters get a copy of
the FAQ (or something similar). there's no control on content after
that.
and it didn't stem the tide. there are still lots of posts asking very
basic questions. it's really turned into a question and answer thing
with little intelligent discussion. once in awhile some of us argue
arcane HTTP points or some other advanced issue, but those threads are
few and far between. it's getting kinda pointless over there.
since the traffic is much higher in c.l.p.m, i think that there might
even be less of a benefit. i'd like to see a strcitly moderated perl
group myself, but hey, there are a lot of things that i would like.
--
brian d foy <URL:http://computerdog.com>
unsolicited commercial email is not appreciated
------------------------------
Date: Thu, 1 May 1997 18:59:59 GMT
From: Rajappa Iyer <rsi@earthling.net>
Subject: Re: Notice to antispammers
Message-Id: <E9IptM.7y5@nonexistent.com>
Followup's set to news.admin.net-abuse.email
nvp@shore.net (Nathan V. Patwardhan) writes:
> Rajappa Iyer (rsi@lucent.com) wrote:
>
> : can be debated. You, on the other hand, have had nothing but sarcasm
> : to back up your position... I guess I know what value to place on your
> : opinions.
>
> Not true. I suggested that more people should filter unwanted mail
> and provided some reasons.
And I have provided reasons why nobody is justified in taking a
unilateral decision to publish information that people have taken some
trouble to hide. Yes I feel strongly about it, but for (what I think
are) valid reasons.
Before I start, you might have noticed that I have not munged my
address. I do filter my mail but that does not make me believe that
everyone is obliged to do the same. The following arguments use 'my'
and 'you' in a generic sense.
1. My mailbox is something I have primarily for *MY*
convenience. While I would not like to make it harder for
legitimate mail to reach me, it conflicts with a stronger desire to
not have to deal with spam mail.
2. Filters are not universally available. Not all posters have control
over what software they can install on their system. Nor do all
posters have admins who are willing to install stuff like procmail
on their systems.
3. If you're unable to junk spam mail automatically, it implies a
significant effort to read even the first two lines and then junk
it.
4. If you have a dialup connection, you end up spending time
downloading spam.
I know I'm not stating anything new here... but I'm merely trying to
emphasize that:
a. Spam is a problem
and
b. Filtering is not a viable option for anyone.
The only real solution for a lot of people is to munge their headers
to prevent the spam in the first place. It is not the best solution,
perhaps, but it is *A* solution. I really don't think it is the place
of Tom C or anyone else for that matter to decide that that is not a
valid solution and go around subverting it.
What I find most ironic about Tom C's proposal to publish addresses of
people who munge it is that he is objecting to what he considers a
discourtesy in a distinctly discourteous manner. It smacks of
arrogance and disregard for others' feelings... precisely what people
objecting to munging headers are accusing people who munge their
headers of. So my question to you is, what gives Tom C the right
(moral or ethical) to do what he's proposing to do?
p.s. Thanks for the procmailrc, but I already have set up an
appropriate procmailrc which works reasonably well for most part.
--
<rsi@earthling.net> a.k.a. Rajappa Iyer. New York, New York.
They also surf who only stand on the waves.
------------------------------
Date: Thu, 1 May 1997 19:04:03 GMT
From: Rajappa Iyer <rsi@earthling.net>
Subject: Re: Notice to antispammers
Message-Id: <E9Iq00.B4B@nonexistent.com>
fl_aggie@hotmail.com (I R A Aggie) writes:
> In article <xnyzpufl1ci.fsf@placebo.hr.lucent.com>, rsi@lucent.com wrote:
>
> + Fighting spam with filtering is a losing battle...
>
> Sez you. There are people who are quite succesful at it.
You have to constantly update your procmailrc... no question about
it. Besides, as has been pointed out several times, filtering is *not*
an option for several people for a variety of reasons.
> + they come up
> + with new domains and tricks all the time. Don't blame people for not
> + wanting to fight a losing battle.
>
> So I should fight it for them? Thanks, but that's as bad as the
> spammers. You're shifting your cost to *ME*, just like the spammers.
How exactly is munging the headers shifting the cost to you? Nobody is
forcing you to reply to any posts.
--
<rsi@earthling.net> a.k.a. Rajappa Iyer. New York, New York.
They also surf who only stand on the waves.
------------------------------
Date: Thu, 1 May 1997 11:52:21 -0400
From: makmorn@qis.net (Daniel Ligon)
Subject: Re: Notice to antispammers
Message-Id: <l7eak5.e58.ln@localhost>
In comp.lang.perl.misc, Rajappa Iyer <rsi@lucent.com> wrote:
>Eli the Bearded <usenet-tag@qz.little-neck.ny.us> writes:
>> This gets debated in news.software.readers regularly. Tom is not
>> alone in his feelings.
>
>Sure... and if all Tom said was "This really pisses me off" I would
>have no argument. But when he threatens to hand addresses on a platter
>for spambots to harvest, he oversteps a line.
He over steps no line.
This is the great Usenet anarchy.
Spammers are free to harvest addresses.
You are free to munge your address.
Tom is free to unmunge your address and give it to the spammers.
It is The Usenet Way. You may participate, or not.
--
Daniel Ligon makmorn@qis.net
I have known Geryon. He is not worthy of trust.
-- _Inferno_
------------------------------
Date: Thu, 01 May 1997 17:09:49 -0500
From: fl_aggie@hotmail.com (I R A Aggie)
Subject: Re: Notice to antispammers
Message-Id: <fl_aggie-ya02408000R0105971709490001@news.fsu.edu>
In article <E9Iq00.B4B@nonexistent.com>, rsi@earthling.net wrote:
+ fl_aggie@hotmail.com (I R A Aggie) writes:
+ > So I should fight it for them? Thanks, but that's as bad as the
+ > spammers. You're shifting your cost to *ME*, just like the spammers.
+ How exactly is munging the headers shifting the cost to you? Nobody is
+ forcing you to reply to any posts.
If I should happen to want to communicate to you something that may
not be necessary to post? you waste my time, having to hunt down your
real address, or having to wade thru bounce messages.
But you're right, I don't have to reply. Not any more than you are being
forced to post.
So, if you feel the need to munge, perhaps you should take a Usenet
vacation...
James
--
Consulting Minister for Consultants, DNRC
To cure your perl CGI problems, please look at:
<url:http://www.perl.com/perl/faq/idiots-guide.html>
------------------------------
Date: 1 May 1997 19:29:37 GMT
From: stampes@xilinx.com (Jeff Stampes)
Subject: Re: NT port of Perl 5
Message-Id: <5kaqv2$crm$1@neocad.com>
Kevin Posen (posenj@lancet.co.za) wrote:
: Hi.
: I'm looking for the Windows NT 3.51 Resource kit containing an NT port of
: Perl 5. I need the later version which works on Windows 95 as well.
: Anyone know of such a thing?
check www.activeware.com for the most recent win32 port of perl5.
I upgraded a few weeks ago, and I must say they've done nice work,
more scripts are easily portable from UNIX to MS32 now...
--
Jeff Stampes -- Xilinx, Inc. -- Boulder, CO -- jeff.stampes@xilinx.com
------------------------------
Date: 01 May 1997 16:59:55 -0400
From: Mike Campbell <mcampbel@tvmaster.turner.com>
Subject: Re: Perl 5.003 bug???
Message-Id: <r53es6hpro.fsf@tvmaster.turner.com>
quentin@remington.amd.com (Quentin Fennessy) writes:
> >In fact, I have /$d/ in my real script, and I could add a
> >$d = '.' if ($d eq '');
> >here, but is there a general method (that also works with empty strings)?
> This was tough to find (I am being serious), ...
>
> I don't know how to avoid it -- this is how it works. You could skip
> the matching operation if $d was empty.
Incidentally, a Very Common way to "set a variable to something if it
isn't already set" is to: (using $d and ".", as in the shown example)
$d ||= ".";
------------------------------
Date: Thu, 01 May 1997 16:21:23 -0600
From: TempStephenByrne@extonpo.bentley.com
Subject: Perl and fixing dynamic URLS
Message-Id: <862521307.9455@dejanews.com>
I am looking for some more help with Regular Expressions as they
relate to URLS.
I am attempting to mirror a site that is "powered" by Oracle WebServer.
When doing this the URLS for the various pages are ugly, I mean real ugly.
Here's is an example:
I have a file that I "sucked" down that is called the following:
"./SELECT_cgi/owa/SOLS.VaultDetail?Application=Engineering+Links%3CSUP%3ET
M%3C/SUP>&PlatformName=Intel(R)+and+compatible+PCs+running+Windows+95"
What I want to do is extract the Application Name and Platform name from
this filename. It seems easy, but some reason I am having a hard time
with it.
My goal is to extract those two items and use them to create a
directory/file. For example, (from the above URL) I would like the
following:
/SELECT/platforms/Intel(R)_and_compatible_PCs_running_Windows_95/Engineeri
ng_Links.html
(Given that /SELECT/platforms will be created a priori)
Any assistance will be greatly appreciated!!!!
Thanks in advance,
Steve Byrne
-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet
------------------------------
Date: Thu, 01 May 1997 17:36:20 GMT
From: jeff@yoak.com (Jeff Yoak)
Subject: Re: Perl auto-replier
Message-Id: <5kausb$qk1@dfw-ixnews7.ix.netcom.com>
emailed as well as posted...
Tom Christiansen <tchrist@mox.perl.com> wrote:
>It got to be too much for him. When something's too much for him,
>he bails. I, on the other hand, got pissy and tried to stick with it.
>I was wrong, twice, but I'm through with those mistakes. I go now to
>join Larry in that great Perl heaven far removed from Usenet.
Count me in the "me too." crowd here. I've followed clpm since I
discovered perl and benefited as much from your answering my questions
as pointing out the more stupid of the questions. I'll miss you a
great deal.
Cheers,
Jeff
Jeff Yoak jeff@yoak.com http://yoak.com/
------------------------------
Date: Thu, 1 May 1997 13:46:37 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: RyanO@AccessComms.co.uk
Subject: Re: Perl database search and page generation
Message-Id: <Pine.GSO.3.96.970501134521.22299D-100000@kelly.teleport.com>
On Tue, 29 Apr 1997 RyanO@AccessComms.co.uk wrote:
> I'm after a Perl script to generate Web pages on the fly from a flat
> file. The file is a standard comma separated
There's information in the FAQ and on CPAN about reading comma-separated
values from files. Hope this helps!
-- Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.lightlink.com/fors/
------------------------------
Date: 1 May 1997 21:23:25 GMT
From: gchang@icarus.shu.edu ()
Subject: perl2c compiler
Message-Id: <5kb1kd$846@pirate.shu.edu>
Keywords: perl to C, Compiling perl
has anyone been able to get the perl to c compiler to work, if so can I be given information an how to get it to work. I am trying to get some c code generated for a perl script that I wrote.
thanks for all the help,
gchang@icarus.shu.edu
------------------------------
Date: 1 May 1997 19:41:11 GMT
From: thall@lexis-nexis.com (Timothy Hall)
Subject: Re: pre-RFD: comp.lang.perl.{data-structure,inter-process,
Message-Id: <5karkn$4bo@mailgate.lexis-nexis.com>
Chipmunk (Ronald.J.Kimball@dartmouth.edu) wrote:
: In article <1997Apr28.161957.14036@schbbs.mot.com>
: appleton@nospam.northbrook.aieg.mot.com (Brad Appleton) writes:
: > I like them, but I think there should be a separate group expressly
: > for newbie questions. So clueless perl newbies who havent the first
: > idea which of the above groups to post to will plainly see where to
: > send their hapless questions. Using c.l.p.misc as a catch-all is
: > fine but I think this particular group of people will merit its own
: > newsgroup (and make the rest of us much happier).
: Assuming that clueless newbies will post to the correct newsgroup, no
: matter how clearly named, seems foolish.
: Chipmunk
If we made a milliard newsgroups, the clue-less newbies would still continue
to cross-post to a milliard and one (that one being alt.rec.knitting "this
is a valid post because you perl when you knit" )
: If there were a newsgroup for such questions, would anyone experienced
: actually read it to answer the newbies' questions?
If anyone did, the newbies wouldn't, they want it in e-mail form with a map.
They've all been spoiled by the soft-hearted gurus who answer the question
anyway, and give them a Cc: (No offense Tom, et al) When I started Perl
programming, we didn't have newsgroups full of help and FAQ's. We had to RTFM
and write the programs ourselves, uphill - both ways - in the SNOW!
Sorry, I was channeling my Dad there...
Point is, instead of making more newsgroups, let's make this one better.
If we can put White-trash in the Whitehouse, we can train newbies to read,
search, think, then post. Or we can all learn to scribo esperanto and screw
with their minds.
-Tim
(><) (><) ***** WARNING! ***** | Lexis-Nexis&Reed-Elsevier
\ \---/ / This e-ddress is protected by an | are not responsible for
( ) Ad Sensing Spam Hating Offensive |my opinions. Only I speak
\() ()/ Letter Exterminator (c) | with my mouth. Only I
> ^ < ( A.S.S.H.O.L.E.) | control my thoughts...
/\HHH/\ "It takes one to know one!" (c) |
/ /-_-\ \ |
(><) (><) |
------------------------------
Date: 1 May 1997 20:17:27 GMT
From: evan@poirot.hpl.hp.com (Evan Kirshenbaum)
Subject: Re: pre-RFD: comp.lang.perl.{data-structure,inter-process,porters,regex}
Message-Id: <5katon$6d0@hplms2.hpl.hp.com>
In article <tcyangE9I060.CI2@netcom.com>,
Tung-chiang Yang <tcyang@netcom.com> wrote:
>(1) Create comp.lang.perl.cgi (or comp.lang.perl.www) and make it
> robomoderated.
>(2) The daemon does not have any robomoderation rule. Anything posted
> there will pass through, but comp.infosystems.www.author.cgi(?) will
> be added into Newsgroups: and Followup-To: lines.
> I am not sure how many people in news.groups will buy the story and
There seems to be consensus that it is a bad thing to cause someone's
articles to be posted to groups other than the list they specified.
This has come up in the context of proposals for moderated groups to
forward bounced messages to their unmoderated counterparts or to
simply remove themselves from bounced crossposts, and also in the
context of binary cancelation reposting the message to appropriate
groups (or an appropriate subset of the crossposted groups).
The consensus appears to be that it is ok to bounce the message for
excessive or inappropriate crossposting and to reset follow-ups, but
not to add groups to (or, I believe, delete groups from) the
Newsgroups line.
--
Evan Kirshenbaum +------------------------------------
HP Laboratories |People think it must be fun to be a
1501 Page Mill Road, Building 1U |super genius, but they don't
Palo Alto, CA 94304 |realize how hard it is to put up
|with all the idiots in the world.
kirshenbaum@hpl.hp.com | Calvin
(415)857-7572
http://www.hpl.hp.com/personal/Evan_Kirshenbaum/
------------------------------
Date: Thu, 1 May 1997 21:06:32 GMT
From: tcyang@netcom.com (Tung-chiang Yang)
Subject: Re: pre-RFD: comp.lang.perl.{data-structure,inter-process,porters,regex}
Message-Id: <tcyangE9ItAw.B6K@netcom.com>
Thanks for your input :) I just tried to provide a bypass for the
"aliasing of newsgroup" without considering the real news.group
consensus. In fact, if I did not start working on
"soc.culture.taiwan.moderated", I would not have read news.groups.
Then maybe someone can create "alt.comp.lang.perl.cgi" first as a
automatic bouncer group, or a Perl neophyte trap .....
====================================
Evan Kirshenbaum (evan@poirot.hpl.hp.com) wrote:
: There seems to be consensus that it is a bad thing to cause someone's
: articles to be posted to groups other than the list they specified.
: This has come up in the context of proposals for moderated groups to
: forward bounced messages to their unmoderated counterparts or to
: simply remove themselves from bounced crossposts, and also in the
: context of binary cancelation reposting the message to appropriate
: groups (or an appropriate subset of the crossposted groups).
: The consensus appears to be that it is ok to bounce the message for
: excessive or inappropriate crossposting and to reset follow-ups, but
: not to add groups to (or, I believe, delete groups from) the
: Newsgroups line.
--
Tung-chiang Yang tcyang@netcom.com
soc.culture.taiwan, soc.culture.china (by SCC FAQ Team) FAQ's:
http://www.clever.net/tcyang/Taiwan_faq.shtml, China_faq.shtml
------------------------------
Date: 1 May 1997 19:37:29 GMT
From: stampes@xilinx.com (Jeff Stampes)
Subject: Re: question: how to trim a string passed via hard reference?
Message-Id: <5kardp$crm$2@neocad.com>
David Alan Black (dblack@icarus.shu.edu) wrote:
: Use ${$_[0]} rather than ${@_[0]}, though.
Of course he's right y'know...
Thanks!
Jeff
--
Jeff Stampes -- Xilinx, Inc. -- Boulder, CO -- jeff.stampes@xilinx.com
------------------------------
Date: 1 May 1997 21:20:23 GMT
From: quentin@remington.amd.com (Quentin Fennessy)
Subject: Re: request for help
Message-Id: <5kb1en$et$1@amdint2.amd.com>
In article <3368ACDF.23C9@cs.wayne.edu>,
mallela reddy <rkm@cs.wayne.edu> wrote:
> I am a student of Wayne State university
>presently working on a perl project(grad course) namely
>"pizza online delivery"(address is
>www.cs.wayne.edu/~rkm). In the project I have given a
>variable $discount (which is 95% or 90% or 75%
>depending upon the total amount you order)of the total
>dollars. In this calculation some times it is giving
>for example as $45.5625 or some times as $45 if I tried
>to give a chop to the $discount twice it is truncating
>but in this process i am loosing $1 or it is giving $45
>as above. please suggest me how to tackle the problem.
>I need something which might convert the variable
>$discount in to a standard datatype in the form of
>money i.e, $00.00(two digits to the right of decimal
>pointer. Please mail the suggestion to rkm@cs.wayne.edu
Please check out sprintf/printf in the perl docs. You can
specify the number of digits to the right of the decimal
on output.
--
Quentin Fennessy AMD, Austin Texas
------------------------------
Date: Thu, 1 May 1997 14:16:57 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: andrea <andrea@iternet.it>
Subject: Re: SIMPLE REG-EXP Please Help!
Message-Id: <Pine.GSO.3.96.970501141504.22299H-100000@kelly.teleport.com>
On Thu, 1 May 1997, andrea wrote:
> I've 600 html files with <\B> instead of </B> as it should be.
perl -pi.bak -e 's#<\\B>#</B>#gi' *.html
Hope this helps!
-- Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.lightlink.com/fors/
------------------------------
Date: Thu, 01 May 1997 15:59:11 -0400
From: comdog@computerdog.com (brian d foy)
Subject: Re: variable substitution
Message-Id: <comdog-0105971559110001@nntp.netcruiser>
In article <3368D7B5.1671@nortel.ca>, Bob Lockie <bjlockie@nortel.ca> wrote:
> I have 2 variables,
> one named $type and one named $index.
>
> I want to do the following inside a print statement.
>
> print "$type_ac$index\n";
>
> but Perl treats "$type_ac" as a variable name.
>
> I tried "$type\_ac" with no luck.
>
> I want to do this INSIDE :-) a print statement. :-)
do you want to interpolate both $type and $index? sometimes the solution
is giving up the way you *want* to do it. after all, it's the result
that counts, and there's more than one way to do it. :)
hmmm.....
#!/usr/bin/perl -w
use strict;
my $type = "support";
my $index = "lu";
print $type . "_ac" . $index . "\n";
print $type . "_ac$index\n"; # probably simpler
print "${type}_ac$index\n";
__END__
--
brian d foy <URL:http://computerdog.com>
unsolicited commercial email is not appreciated
------------------------------
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 409
*************************************