[11263] in Perl-Users-Digest
Perl-Users Digest, Issue: 4863 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Feb 10 13:07:22 1999
Date: Wed, 10 Feb 99 10:00:21 -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, 10 Feb 1999 Volume: 8 Number: 4863
Today's topics:
Re: CGI Programmer Needed! We'll Give... (brian d foy)
cgi-lib.pl (Choi Jae-ho)
change column of nmbers to 2 dim array <t.d.bess@larc.nasa.gov>
Re: compilation fails on Aix 4.3.2.0 (Clinton Pierce)
Re: Converting CSV to LDIF dragnovich@my-dejanews.com
Re: Converting CSV to LDIF dragnovich@my-dejanews.com
fd 'bad file number' and 'file exists' joel@testtutor.com
FEED Magazine Issue on OSS <woshea@spacelab.net>
Re: Frustrating problem with Exporter <tomw@action.cnchost.com>
Re: Frustrating problem with Exporter <jdf@pobox.com>
Re: Frustrating problem with Exporter <tomw@action.cnchost.com>
Graphs and gifs <rhrh@hotmail.com>
Re: Help editing script <jdf@pobox.com>
Re: help with https programming? (brian d foy)
list comparison code? <Monty.Scroggins@mci.com>
Re: Newbie from Intel Evil Empire wants to know how to (Jennifer Lyons)
Re: NEWBIE Question about error checking string <aqumsieh@matrox.com>
Re: No such file or directory <nalzawaw@ford.com>
Re: Parsing output from a program called within perl <aqumsieh@matrox.com>
Re: performance penalty: bareword, single quoting, doub (Sean McAfee)
Re: Perl 'zine (brian d foy)
Re: Perl 'zine <rkoehler@osmre.gov>
Re: perl x- times an equal sentence <jdf@pobox.com>
send mail using perl and Microsoft Post Office on NT? <fuzzy825@hotmail.com>
Re: strict (Bart Lateur)
use Fcntl ':flock' <abukar@insidewire.com>
Re: XML::Parser and xsl <matthew.sergeant@eml.ericsson.se>
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Wed, 10 Feb 1999 11:16:11 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: CGI Programmer Needed! We'll Give...
Message-Id: <comdog-ya02408000R1002991116110001@news.panix.com>
In article <79qh4g$5pk$1@nnrp1.dejanews.com>, BagwellDesign@excite.com posted:
> So we have given up on it, and are looking for a programmer to make a brand
> new one with a fresh start.
>
> This site, being a wrestling site, will be a very big website. We already are
> going to setup a joint venture with a New York radio show that get's hundreds
> of thousands of listeners each week,
[snip]
> Now, what will you get?
>
> Well, I am not made of money, so this is what I can offer you:
note to those thinking this is a good deal - any web site that is a
joint venture with a New York radio show should be able to pay
you money. if they have the marketing to make this a "very big website",
they have the money to pay you. notice that he offers banner ads. are
you going to realistically be able to sell programming services with
ads on a wrestling site? wrong market! ask for the same number of
impressions on developer.com or a similar site!
if you are good enough to do this project, you are good enough to get
paid, even if that's a measly $25 an hour. you could even get paid
to just set-up an existing product.
and, if you are in New York, there's a lot better ways to find
Perl work - like the New York Perl Mongers! <URL:http://ny.pm.org>
--
brian d foy
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
------------------------------
Date: 10 Feb 1999 00:19:13 GMT
From: choij@cae.wisc.edu (Choi Jae-ho)
Subject: cgi-lib.pl
Message-Id: <79qja1$gcm$1@news.doit.wisc.edu>
Hello!
I'm a novice in perl world.
My question is..
I think I have to put cgi-lib.pl on my WWW directory.
But My server doesn't have this file and also WWW directory.
Could somebody help me to do this?
I appreciate this..
choi
------------------------------
Date: Wed, 10 Feb 1999 12:22:16 -0500
From: Dale Bess <t.d.bess@larc.nasa.gov>
Subject: change column of nmbers to 2 dim array
Message-Id: <36C1C043.15F2A09D@larc.nasa.gov>
How can I use perl to transform a column of numbers (2592) to a 2
dimensional
array (36 x 72) using say an embedded loop and print out results?
Dale Bess
NASA Langley Research Center
Hampton, VA
t.d.bess@larc.nasa.gov
------------------------------
Date: Wed, 10 Feb 1999 15:46:04 GMT
From: cpierce1@ford.com (Clinton Pierce)
Subject: Re: compilation fails on Aix 4.3.2.0
Message-Id: <36d1a8e6.681643497@news.ford.com>
On Fri, 05 Feb 1999 16:48:30 +0100, Jaap Voets <nlx7043@nl.ibm.com>
wrote:
>When trying to build a threaded perl with dynamic loading of modules on
>AIX 4.3.2 I experience the following problem:
>
>configure & make work
>when doing make test 25 tests fail, all the ones trying to load one of
>the .so files
>they all have the same behavior, for example:
>[...]
>
>the weird thing is, we compiled perl a few weeks earlier on the same
>system, but Runinng AIX 4.3.1 without a flaw, it's probably a linker
>thing, but I'm not a C-guru that knows what's going wrong
There's the problem. Make sure. SURE. SURE. SURE you've gotten rid
of all traces of the old build before starting the new one. "make
clean" will usually do that (check the installation instructions). Go
through the "./configure" again. Also, make sure you don't have a
LIBPATH variable set to anything in particular when you do the perl
build...just let the OS do its thing.
Lastly, when you did the 4.3.1->4.3.2 upgrade, did you get all of the
development libraries (and tools) as well?
------------------------------
Date: Wed, 10 Feb 1999 17:02:27 GMT
From: dragnovich@my-dejanews.com
Subject: Re: Converting CSV to LDIF
Message-Id: <79se2s$qbf$1@nnrp1.dejanews.com>
In article <36C0A261.89E534EC@cs.berkeley.edu>,
Aaron Tavistock <aarontav@cs.berkeley.edu> wrote:
> What is a CSV file?
>
> I've done alot of scripts for converting other formats into LDIF, but I
> have no idea what CSV is.
>
> Aaron Tavistock
A CSV is in fact a simple text file in were all of the camps of the database
are separated by COMAS "," if a field contains a coma in the body the field
starts with ".
Ie
---START OF CSV FILE ---
Juan,C,Lopez,Some Addres,Some email<enter>
Juan,C,Lopez,Some Addres,"email1,email2"<enter>
---END OF CSV FILE ---
------------------------
Juan Carlos Lopez
QDesigns President & CEO
http://www.qdesigns.com
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Wed, 10 Feb 1999 17:28:21 GMT
From: dragnovich@my-dejanews.com
Subject: Re: Converting CSV to LDIF
Message-Id: <79sfj6$rko$1@nnrp1.dejanews.com>
Hhhooooooooo!! thats a DIF file!
Well if you JUST want to convert it from CSV or TXT(in Tab Separated Format)
to DIF (or LDIF) open your excel program and open and export the data base to
DIF format! =-)
But if you want to make a Perl program that converts from CVS to DIF that will
be a problem! Because you have to learn the DIF format.
Ok For every body that wants to program in DIF format or in CSV or IN ANY
KNOWN WAY OF DATA SHEETS go here http://www.wotsit.org/ and in the database
section you can find how to read/save files even in excel! wow! hahahaha
(well if you can understand the excel standard! is sucks!)
Here is an example of a CSV file and a DIF file!
***CSV FILE***
1,Pen,12,12
2,Book,13,26
3,pencil,14,42
4,book2,15,60
*** DIF format ***
TABLE
0,1
"EXCEL"
VECTORS
0,4
""
TUPLES
0,4
""
DATA
0,0
""
-1,0
BOT
0,1
V
1,0
"Pen"
0,12
V
0,12
V
-1,0
BOT
0,2
V
1,0
"Book"
0,13
V
0,26
V
-1,0
BOT
0,3
V
1,0
"pencil"
0,14
V
0,42
V
-1,0
BOT
0,4
V
1,0
"book2"
0,15
V
0,60
V
-1,0
EOD
Soo you have to learn how to read DIF files! =-) (Why make the live soo hard!)
------------------------
Juan Carlos Lopez
QDesigns President & CEO
http://www.qdesigns.com
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Wed, 10 Feb 1999 16:05:28 GMT
From: joel@testtutor.com
Subject: fd 'bad file number' and 'file exists'
Message-Id: <79sant$mv2$1@nnrp1.dejanews.com>
I am trying to lock a tied database and the following code snippet should give
me a filehandle DB_FH that can then be flocked:
$db = ( tie %data, "MLDBM", "/usr/local/etc/data/user/personal",
O_RDWR|O_CREAT, 0640 ) or die("Cannot open db
/usr/local/etc/data/user/personal: $!") ; $fd = $db->fd ; open( DB_FH,
"+<&=$fd" ) or die( "Cannot open DB_FH, +<&=$fd: $!" ) ;
But I get 'Cannot open DB_FH, +<&=3: Bad file number' on the Linux system it
is run on and 'Cannot open DB_FH, +<&=3: File Exists' on win95 system.
I don't know what these error messages mean or how to resolve them.
Joel
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Wed, 10 Feb 1999 12:03:33 -0500
From: "William F. O'Shea jr." <woshea@spacelab.net>
Subject: FEED Magazine Issue on OSS
Message-Id: <36C1BBE5.B2606A0@spacelab.net>
FEED Magazine is featuring a special issue on Free Software and Open
Source. It includes a dialog with Richard Stallman, head of the Free
Software Foundation and MacArthur grant winner; Eric Raymond, author of
"The Cathedral and the Bazaar" and The New Hacker's Dictionary and
proponent of "open source"; and Eric Allman, president of Sendmail, Inc.
The rest of the issue will be unvelied all through next week. It will
include interviews with the creator of GNOME and Perl creator Larry
Wall, an article on free software's evolutionary claims, and a history
of the free software movement.
Check it out: http://www.feedmag.com
------------------------------
Date: Wed, 10 Feb 1999 10:17:16 -0700
From: Tom Williamson <tomw@action.cnchost.com>
To: Jonathan Feinberg <jdf@pobox.com>, jdf@pobox.com
Subject: Re: Frustrating problem with Exporter
Message-Id: <36C1BF1C.239B979D@action.cnchost.com>
So what's the answer to my question? Or do you know?
My question, in case it was unclear, was:
What is the easiest way to export global values to a number of different
Perl scripts/modules?
>From the Perl documentation ( 4.91 MB, which I HAVE been wading through)
it appears that the Exporter class is the "preferred" method of exporting
global values. Yet, the entire documentation for this class (at least in
the ActiveState implementation of Perl) consists of a single example which
follows what I have laid out below. The export/import mechanism is
touched on obliquely if at all, and (of course) troubleshooting
information is nowhere to be found. It is, as the saying goes, "left as
an exercise for the reader".
I simply would like to know if (1) The Export module works for this
purpose and (2) if there is an easier/better way to do this?
Also, here's a novel concept: If newbie posts irritate you (and they
apparently do), don't read/answer them.
Tom
Jonathan Feinberg wrote:
> "Tom Williamson" <tomw@action.cnchost.com> writes:
>
> > use Exporter;
> > @ISA = qw(Exporter); ##This is never explained, but it's in all the
> > examples
>
> When you say "this is never explained", what on earth do you mean? Do
> you mean that the @ISA variable isn't documented? Sure it is. See
> perlmod, perlobj, and perltoot for starters.
>
> > $MYSYM1 = "BLA BLA BLA";
> > $MYSYM2 = "I HATE PERL";
>
> Perhaps you'll have better luck with Python.
>
> > @EXPORT = qw( MYSYM1 MYSYM2 );
>
> You haven't exported $MYSYM1 or $MYSYM2 there.
>
> You have exported some undefined entities called MYSYM1 and MYSYM2.
> Maybe they're subroutines; maybe they're filehandles. I don't know.
>
> Followups set to delete dead group.
> --
> Jonathan Feinberg jdf@pobox.com Sunny Brooklyn, NY
> http://pobox.com/~jdf
------------------------------
Date: 10 Feb 1999 17:47:23 +0100
From: Jonathan Feinberg <jdf@pobox.com>
To: "Tom Williamson" <tomw@action.cnchost.com>
Subject: Re: Frustrating problem with Exporter
Message-Id: <m3679akxyc.fsf@joshua.panix.com>
"Tom Williamson" <tomw@action.cnchost.com> writes:
> use Exporter;
> @ISA = qw(Exporter); ##This is never explained, but it's in all the
> examples
When you say "this is never explained", what on earth do you mean? Do
you mean that the @ISA variable isn't documented? Sure it is. See
perlmod, perlobj, and perltoot for starters.
> $MYSYM1 = "BLA BLA BLA";
> $MYSYM2 = "I HATE PERL";
Perhaps you'll have better luck with Python.
> @EXPORT = qw( MYSYM1 MYSYM2 );
You haven't exported $MYSYM1 or $MYSYM2 there.
You have exported some undefined entities called MYSYM1 and MYSYM2.
Maybe they're subroutines; maybe they're filehandles. I don't know.
Followups set to delete dead group.
--
Jonathan Feinberg jdf@pobox.com Sunny Brooklyn, NY
http://pobox.com/~jdf
------------------------------
Date: Wed, 10 Feb 1999 10:30:16 -0700
From: Tom Williamson <tomw@action.cnchost.com>
Subject: Re: Frustrating problem with Exporter
Message-Id: <36C1C228.F35ED51A@action.cnchost.com>
For everyone's edification, here is the actual example from the Exporter
documentation put out by ActiveState, which I followed explicitly when
attempting to use Exporter. If anyone would like to poke some holes in
THIS code, feel free, but perhaps you should tell ActiveState about the
problem and not flame me for trying to understand it. :>
SYNOPSIS
In module ModuleName.pm:
package ModuleName;
require Exporter;
@ISA = qw(Exporter);
@EXPORT = qw(...); # symbols to export by default
@EXPORT_OK = qw(...); # symbols to export on request
%EXPORT_TAGS = tag => [...]; # define names for sets of symbols
In other files which wish to use ModuleName:
use ModuleName; # import default symbols into my package
use ModuleName qw(...); # import listed symbols into my package
use ModuleName (); # do not import any symbols
Jonathan Feinberg wrote:
> "Tom Williamson" <tomw@action.cnchost.com> writes:
>
> > use Exporter;
> > @ISA = qw(Exporter); ##This is never explained, but it's in all the
> > examples
>
> When you say "this is never explained", what on earth do you mean? Do
> you mean that the @ISA variable isn't documented? Sure it is. See
> perlmod, perlobj, and perltoot for starters.
>
> > $MYSYM1 = "BLA BLA BLA";
> > $MYSYM2 = "I HATE PERL";
>
> Perhaps you'll have better luck with Python.
>
> > @EXPORT = qw( MYSYM1 MYSYM2 );
>
> You haven't exported $MYSYM1 or $MYSYM2 there.
>
> You have exported some undefined entities called MYSYM1 and MYSYM2.
> Maybe they're subroutines; maybe they're filehandles. I don't know.
>
> Followups set to delete dead group.
> --
> Jonathan Feinberg jdf@pobox.com Sunny Brooklyn, NY
> http://pobox.com/~jdf
------------------------------
Date: Wed, 10 Feb 1999 15:49:44 +0000
From: Richard H <rhrh@hotmail.com>
Subject: Graphs and gifs
Message-Id: <36C1AA98.75A932A@hotmail.com>
Hi,
Can anyone point me towards a graph plotting module, Im running on UNIX
and GD/GIFgraph arent flexible enough to allow xy scatter graphs
thanks,
richard H
------------------------------
Date: 10 Feb 1999 17:29:59 +0100
From: Jonathan Feinberg <jdf@pobox.com>
To: chall5@hotmail.com
Subject: Re: Help editing script
Message-Id: <m3btj2kyrc.fsf@joshua.panix.com>
chall5@hotmail.com writes:
> I would be so grateful if someone could extract the search bits and package
> them up in to a search.pl file and send it to me. A lot to ask I know but I
> get the impression that the Perl community are a pretty helpful bunch judging
> from responses I have had in the past.
I would be glad to help you with the job you outline, above, for
$100/hr. Hell, I'd even help you for free if you were using this
newsgroup to discuss the Perl language.
--
Jonathan Feinberg jdf@pobox.com Sunny Brooklyn, NY
http://pobox.com/~jdf
------------------------------
Date: Wed, 10 Feb 1999 11:35:05 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: help with https programming?
Message-Id: <comdog-ya02408000R1002991135050001@news.panix.com>
In article <79qm2r$qak@Xenon.Stanford.EDU>, hirano@cs.stanford.edu posted:
> In article <79qkp5$66s$1@newshost.lanl.gov>,
> Henry Lu <hlu@hcv.lanl.gov> wrote:
> >
> >
> >I want to write perl program to check enscripted https web site and
> >download the site with my own passwd and userID. I know how to
> >program http with perl/LWP but I have no clue how to do
> >https programming.
> >
> >Can someone help me? which book should I buy? (I have
> >book "web client programming with perl")
> perldoc LWP::UserAgent
>
> you can use the credentials method to set the username and password of the
> user agent.
of course, that has nothing to do with SSL. however, it is quite
easy to use SSL with LWP. this question has been answered many times
in this group, so the original poster may want to use DejaNews [1] to
see previous responses (some from Gisle no less!).
[1] DejaNews
<URL:http://www.dejanews.com>
--
brian d foy
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
------------------------------
Date: Wed, 10 Feb 1999 17:47:28 GMT
From: "Monty Scroggins" <Monty.Scroggins@mci.com>
Subject: list comparison code?
Message-Id: <QCjw2.61$DG2.21465@PM01NEWS>
Does anyone have a snippet of code that would perform the
equivilent of the unix "comm" command? I would like to
compare two lists (A and B) and generate three output lists
a list of lines in A and not B,
a list of lines in B and not in A,
a list of lines in both A and B.
Thanks
Monty.Scroggins@mci.com
------------------------------
Date: 10 Feb 1999 17:17:45 GMT
From: lyonsj@bgnet.bgsu.edu (Jennifer Lyons)
Subject: Re: Newbie from Intel Evil Empire wants to know how to get started with basic Perl program
Message-Id: <79sevp$51t$1@infoserver.bgsu.edu>
Bob Tennant (bobtennant@loop.com) wrote:
: I'm having difficulty getting started with Perl. My computer is an Intel
: Pentium running Windows 95. Following is my sad tale of woe.
<snip>
: Next, I tried running the program, as follows:
: I brought up Perl by double-clicking "Perl.exe" and an MS-DOS window opened
: which was completely blank -- not even a prompt. So I typed the following:
: % perl hello.txt
: This resulted in the following message:
: Bare word found where operator expected -- at line 1, near "%Perl hello"
: (Missing operator before hello?)
: syntax error at -- line 1, near "%Perl hello"
Sounds like you're trying to type DOS commands in Perl. Basically (and keep
in mind that I never use Perl for win32 anymore) it's starting up Perl, and
Perl is ready to read in what you tell it to do. So if you typed
print "hello\n";
instead, you'd probably see
hello
on your screen.
You can rename things in Explorer, afaik, so just change the extension and
associate that extension (.pl) with Perl and then all you'll have to do is
double-click. Either that, or bring up a "DOS" window and type perl hello.txt
there.
Jen
------------------------------
Date: Wed, 10 Feb 1999 17:03:04 GMT
From: @l@ <aqumsieh@matrox.com>
Subject: Re: NEWBIE Question about error checking string
Message-Id: <79se3v$qbr$1@nnrp1.dejanews.com>
In article <36BF394F.61B179FD@ix.netcom.com>,
paxtond@nospam.ix.netcom.com wrote:
> I need to check a string to see if it contains any characters OTHER
> THAN 0, 1, 2, 3, 4, 5, and the space key.
> unless ($FORM{'string1'} "CONTAINS CHARACTERS OTHER THAN..."
unless ($FORM{'string1'} =~ /[0-5 ]/) {
--Ala
$monger->{montreal}->[0];
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Wed, 10 Feb 1999 10:56:55 -0500
From: Nasser Al-Zawawi <nalzawaw@ford.com>
Subject: Re: No such file or directory
Message-Id: <36C1AC47.B07E13C0@worldnet.att.net>
yeah, I get that when I create the file in DOS/win environment and the copy the
file without doing the proper conversion. meaning the file would still have the
windows end of line characters which is different from unix (UNIX -> \n, DOS ->
\r\n). You can tell if this is the case by using the vi editor on your script
and it says [dos format] at the bottom of the screen.
If that is the case, what you need to do is run this command on your script:
perl -p -i -e 's/\r//g' script_name
where script_name is the name of your script.
This error is not a perl error, actually perl never get executed because the
error is in the first line #!/usr/bin/perl\r ***Notice the \r *** which does not
exist. So, Linux is telling you that there is no such file.
HTH,
Nasser
Glen Lee Edwards wrote:
> I'm trying to install a Perl script on a Linux system and on three of the
> cgi scripts I keep getting a "no such file or directory" error. But when I
> look through the script it appears that the syntax referencing the files are
> correct, and all the respective folders are in place. Any suggestion?
>
> Thanks,
>
> Glen
------------------------------
Date: Wed, 10 Feb 1999 16:48:45 GMT
From: @l@ <aqumsieh@matrox.com>
Subject: Re: Parsing output from a program called within perl
Message-Id: <79sd98$pd0$1@nnrp1.dejanews.com>
In article <79n0ub$49e$1@nnrp1.dejanews.com>,
kalikste@uiuc.edu wrote:
> How can I parse input from a program called from system() as if it were
> comming from <STDIN>? I don't think it should matter, but I am on a win32
> system (NT).
Don't use system().
You can find the answer along with examples in perlfunc (read about open() and
using '|') and in perlipc.
open F, "dir |" or die "ERROR: $!\n";
while (<F>) {
print "I read $_.\n";
}
close F or die "ERROR: $!\n";
Or .. you can use backticks (or qx//) .. check the documentation (perlop) for
more on this.
--Ala
$monger->{montreal}->[0];
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Wed, 10 Feb 1999 16:23:34 GMT
From: mcafee@waits.facilities.med.umich.edu (Sean McAfee)
Subject: Re: performance penalty: bareword, single quoting, double quoting
Message-Id: <aoiw2.6547$Ge3.26524569@news.itd.umich.edu>
In article <1dmzjss.1nx89hnbffik4N@bay2-161.quincy.ziplink.net>,
Ronald J Kimball <rjk@linguist.dartmouth.edu> wrote:
>What Brad meant to say was:
>I like barewords in those places where perl doesn't complain about
>them. Actually, -w doesn't complain about lower-case barewords **as hash
>keys**.
>In other words, -w will not complain about things such as $x{foo}.
Hmmm, I wasn't aware of that. And I just recently went back through a
module I wrote and quoted all my lowercase hash keys, in anticipation of
making it -w safe.
However, I notice that -w still doesn't like lowercase hash keys when used
in a hash slice (eg, @hash{foo, bar}), and my code uses expressions like
that, so for the sake of uniformity I'll leave my keys quoted. Anyone more
hip to Perl's internals than I am want to estimate whether this is behavior
that ought to or could easily be fixed?
--
Sean McAfee | GS d->-- s+++: a26 C++ US+++$ P+++ L++ E- W+ N++ |
| K w--- O? M V-- PS+ PE Y+ PGP?>++ t+() 5++ X+ R+ | mcafee@
| tv+ b++ DI++ D+ G e++>++++ h- r y+>++** | umich.edu
------------------------------
Date: Wed, 10 Feb 1999 11:25:15 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: Perl 'zine
Message-Id: <comdog-ya02408000R1002991125150001@news.panix.com>
In article <ORWANT.99Feb9235652@alphaville.media.mit.edu>, orwant@media.mit.edu posted:
> I've long been asking for a recurring page on what the Perl Monger
> groups are doing, but no one has stepped up to the plate.
i will either find someone to do this or do it myself. [details in
private email, Jon :) ] if a Perl Monger type would like to write
about their user group, please let me know.
--
brian d foy
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
------------------------------
Date: Wed, 10 Feb 1999 16:36:34 GMT
From: "Rick K" <rkoehler@osmre.gov>
Subject: Re: Perl 'zine
Message-Id: <F6y63p.K0E@igsrsparc2.er.usgs.gov>
Uri Guttman wrote in message <39vhhbcps8.fsf@ibnets.com>...
>[snip]
>volunteered to help him then tpj could come more often (say bimonthly at
>first and later monthly) but publishing a glossy linux journal type rag
>is a major fulltime enterprise with big bucks needed and many
>advertisers.
>[snip]
I would tend to agree with Uri and Jon, etc.; TPJ "supports many platforms",
it's undoubtably a lot of work, with articles written by those folks who
really have "been there" (and been there for years).
<soapbox>>
One point I'd like to make is that I enjoy the "non-glossy" nature of TPJ
as it exists right now. Much text, much info, few ads, no crappy "blow-in"
ad cards. Now, the "few ads" aspect may not be great for the publishers
of TPJ, but at least it means one wades through less garbage to get to
the meat. And the ads are typically on-target for the audience, IMHO.
I'd rather pay a bit more for TPJ and keep it focused and succinct, instead
of seeing it suffer from bloat. As the blurbs say, it has a very high signal
to noise ratio.
One must also point out that the publishers did kind of put out feelers for
articles written by folks who are further down the learning curve ... sort
of "perl as seen by non-expert viewpoint"? So, TPJ is trying to meet the
needs of a diverse audience (in terms of skill level).
All of this is not to say that an e'zine is a horrible idea; simply let's not
ruin a good thing, combined with thinking things through, from many angles.
</soapbox>
Thanks.
------------------------------
Date: 10 Feb 1999 17:33:23 +0100
From: Jonathan Feinberg <jdf@pobox.com>
To: simc@gmx.net
Subject: Re: perl x- times an equal sentence
Message-Id: <m390e6kylo.fsf@joshua.panix.com>
simc@gmx.net writes:
> $SAVEFILE = "STDDAT";
>
> open($SAVEFILE, ">>$save_file");
Why are you using a symbolic reference to a filehandle, rather than
just using a filehandle directly? Also, it's very bad to not check
the success of a system call like open().
open(STDDAT, ">> $save_file")
|| die "Can't append to $save_file: $!\n";
> print $SAVEFILE "$name]$email]$school]$location]";
> print $SAVEFILE "$vday]$vmonth]$vyear]$bday]$bmonth]$byear\n";
> close($SAVEFILE);
There's nothing in your code that would lead to the behavior you
described. What does the first line of your script look like? It
should look something like
#!/path/to/perl -w
I'm wondering if maybe you've mistakenly used the -n or -p switch, or
something like that.
--
Jonathan Feinberg jdf@pobox.com Sunny Brooklyn, NY
http://pobox.com/~jdf
------------------------------
Date: 10 Feb 1999 17:45:26 GMT
From: "Fuzzy" <fuzzy825@hotmail.com>
Subject: send mail using perl and Microsoft Post Office on NT?
Message-Id: <01be551c$eeff0c10$cc34dea1@cbcgren091454>
Is it possible to send mail to a microsoft post office in NT or windows 95?
We use post office and exchange for all incoming and outgoing mail. For
some automation, perl would be perfect, but we need to be able send mail
with attachments.
Fuzzy
------------------------------
Date: Wed, 10 Feb 1999 15:45:04 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: strict
Message-Id: <36c4a959.10708452@news.skynet.be>
James Ludlow wrote:
>I think that in a specialized group like clpm, we should be able to
>assume at least a basic level of computer literacy.
Good. We're back at the same question: why isn't there a group for Perl
newbies?
;-)
Bart.
------------------------------
Date: Wed, 10 Feb 1999 11:17:08 -0500
From: "Abukar Mohamed" <abukar@insidewire.com>
Subject: use Fcntl ':flock'
Message-Id: <36c1b033.0@diana.idirect.com>
Hi
I need a help to use flock module from this lib ' use Fcntl ':flock' ';
My site supports ./Fcntl.pm this module but I got this errer message:
"flock" is not defined in %Fcntl::EXPORT_TAGS at
/usr/local/lib/perl53/Exporter.pm line 57
Exporter::export called at /usr/local/lib/perl53/Exporter.pm line 149
Exporter::import called at /u/web/hous48/cgi-local/secure/checkcard.cgi
line 8
main::BEGIN called at /usr/local/lib/perl53/Fcntl.pm line 0
eval {...} called at /usr/local/lib/perl53/Fcntl.pm line 0
Can't continue after import errors at
/u/web/hous48/cgi-local/secure/checkcard.cgi line 8
BEGIN failed--compilation aborted at
/u/web/hous48/cgi-local/secure/checkcard.cgi line 8.
Any Help will be greatly appreciated.
Abukar
------------------------------
Date: Wed, 10 Feb 1999 16:46:58 +0000
From: Matt Sergeant <matthew.sergeant@eml.ericsson.se>
Subject: Re: XML::Parser and xsl
Message-Id: <36C1B802.A7420403@eml.ericsson.se>
"F. Geeb" wrote:
>
> Hi,
> I tried the perl XML::Parser and it works just fine; the same with
> Jonathan Eisenzopf's xmlfaq.pl. But is there a perl-way to convert xml
> to hmtl on the fly without coding every tag from each document like in
> the xmlfaq.pl? - I'm looking for a program that parses xml-documents -
> e.g. with XML::Parser - and converts them on the
> basis of xsl-documents.
Not yet - people are thinking about it and maybe even working on it
though. (possibly including myself). For now it's possible to use msxsl
through Win32::OLE if you're on a Win32 box.
--
<Matt email="msergeant@ndirect.co.uk" />
| Fastnet Software Ltd | Perl in Active Server Pages |
| Perl Consultancy, Web Development | Database Design | XML |
| http://come.to/fastnet | Information Consolidation |
------------------------------
Date: 12 Dec 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 Dec 98)
Message-Id: <null>
Administrivia:
Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing.
]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body. Majordomo will then send you instructions on how to confirm your
]subscription. This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.
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 4863
**************************************