[12280] in Perl-Users-Digest
Perl-Users Digest, Issue: 5880 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Jun 3 18:07:26 1999
Date: Thu, 3 Jun 99 15:00:19 -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 Jun 1999 Volume: 8 Number: 5880
Today's topics:
ARGH! mailx, uuencode, Netscape mail problem. Help plea <micsaund@holly.ColoState.EDU>
Re: ARGH! mailx, uuencode, Netscape mail problem. Help (Greg Bacon)
buddy <mdw190@psu.edu>
Re: buddy <mdw190@psu.edu>
Re: buddy (Greg Bacon)
Re: damn F@#$(*)@ unix (*%$#&!* pipes <krader@sequent.com>
Re: damn F@#$(*)@ unix (*%$#&!* pipes <webmaster@chatbase.com>
Re: DBI vs ODBC?? (CMcphe6584)
Re: Determining height and with of uploaded Graphic fil <webmaster@chatbase.com>
Re: Im not asking for much (Tony Kennick)
images <skalar10@hotmail.com>
Re: images <skalar10@hotmail.com>
Re: Multi-Inclusive Pattern Match <uri@sysarch.com>
Re: Multi-Inclusive Pattern Match (Andrew Allen)
Re: Password Generator <cassell@mail.cor.epa.gov>
Re: Perl Script wanted (to send SMS by WWW) <cassell@mail.cor.epa.gov>
Re: require and the include stack under the covers... <emschwar@rmi.net>
Structures in PERL <mrizzo@ismd.ups.com>
Re: Structures in PERL <tchrist@mox.perl.com>
Re: Stupid Error 500 [Please Forgive Me... My First Pos <webmaster@chatbase.com>
Re: The artistic license and perl: (Chris Nandor)
Re: uninitialized value? what am i doing wrong? <webmaster@chatbase.com>
Re: where did I go wrong? (Marc Bissonnette)
Re: where did I go wrong? <tchrist@mox.perl.com>
Re: where did I go wrong? (Greg Bacon)
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 3 Jun 1999 15:36:36 -0600
From: Michael Saunders <micsaund@holly.ColoState.EDU>
Subject: ARGH! mailx, uuencode, Netscape mail problem. Help please...
Message-Id: <7j6sh4$23i0@holly.ColoState.EDU>
This isn't exactly a stictly Perl question, but I am using Perl
to write this program, so I thought that maybe someone had an
answer, or a better way of doing what I need.
Mike
-------------------
Hello,
I'm writing a script on a Unix machine (HP-UX to be exact) which generates
an Adobe Acrobat file. After that, I need to email the Acrobat file to
others, many of whom are not very computer literate Windows users who can't
decode files manually. (For this, I'm using 'mailx' since it is command
line driven.)
Therefore, I've been trying to get the uuencoded file to show-up as an
"attachment" in Netscape mail, but it keeps coming-up with the uuencoded
data rather than "something I can click on" as the Windows users say.
When I send the *exact* same uuencoded file from elm, it shows-up just
fine in Netscape. This is getting VERY irritating!!
Coding is in Perl:
Here's how I'm making the encoded file "email.uue":
$bs = `/usr/bin/uuencode $shortfile $shortfile > email.uue`;
Then, to send it to the recipients, I use:
system("/usr/bin/mailx -s \"$title\" $current < email.uue");
where $current is the e-mail address of the intended recipient.
This does NOT appear as an "attachment" in NS mail. If I use
Elm to send the *exact* same email.uue file from above, the
NS mail sees an attachment.
What am I missing here? Any help would be appreciated!
Thanks,
Mike
micsaund@holly.colostate.edu
------------------------------
Date: 3 Jun 1999 22:00:16 GMT
From: gbacon@itsc.uah.edu (Greg Bacon)
Subject: Re: ARGH! mailx, uuencode, Netscape mail problem. Help please...
Message-Id: <7j6ttg$bdm$3@info2.uah.edu>
In article <7j6sh4$23i0@holly.colostate.edu>,
Michael Saunders <micsaund@holly.ColoState.EDU> writes:
: This does NOT appear as an "attachment" in NS mail. If I use
: Elm to send the *exact* same email.uue file from above, the
: NS mail sees an attachment.
You might want to look at using the MIME::Lite distribution (available
on the CPAN!) to do what you want.
Greg
--
God created man. Sam Colt made all men equal.
-- Jim Farmer
------------------------------
Date: Thu, 03 Jun 1999 17:11:13 -0400
From: Michael Willhide <mdw190@psu.edu>
Subject: buddy
Message-Id: <3756EF71.2FA19CE1@psu.edu>
Man... Look at this. That's not the signature file you will forget to
turn off when writing your mom. !
In article <37568734.2F8FDD5@americasm01.nt.com>,
"M. S. Scott" <mikescot@americasm01.nt.com> writes:
: Perl monger wanna-be
Start by learning to use Usenet properly. Test messages belong in
alt.test, misc.test, or misc.test.moderated.
Greg
--
I'd call you an asshole, but an asshole is worth fucking once in awhile.
-- Kathy Thurber
--
=============================
Michael Willhide
Applied Research Laboratory
Pennsylvania State University
=============================
------------------------------
Date: Thu, 03 Jun 1999 17:16:15 -0400
From: Michael Willhide <mdw190@psu.edu>
Subject: Re: buddy
Message-Id: <3756F09F.A9F681F6@psu.edu>
My apologies. This was meant to go to a friend, and of course I clicked
send before I checked it over. This obviously doesn't not reflect the
views of the Penn State ARL.
Again, sorry.
Mike
Michael Willhide wrote:
>
> Man... Look at this. That's not the signature file you will forget to
> turn off when writing your mom. !
>
> In article <37568734.2F8FDD5@americasm01.nt.com>,
> "M. S. Scott" <mikescot@americasm01.nt.com> writes:
> : Perl monger wanna-be
>
> Start by learning to use Usenet properly. Test messages belong in
> alt.test, misc.test, or misc.test.moderated.
>
> Greg
> --
> I'd call you an asshole, but an asshole is worth fucking once in awhile.
> -- Kathy Thurber
> --
------------------------------
Date: 3 Jun 1999 21:33:19 GMT
From: gbacon@itsc.uah.edu (Greg Bacon)
Subject: Re: buddy
Message-Id: <7j6sav$bdm$1@info2.uah.edu>
In article <3756EF71.2FA19CE1@psu.edu>,
Michael Willhide <mdw190@psu.edu> writes:
: Man... Look at this. That's not the signature file you will forget to
: turn off when writing your mom. !
I use a slightly modified version of tchrist's sigrand program. It's
always amazing how it seems to choose a signature that places a slightly
different spin on my posts.
I send and read email with mh, and I don't have signatures enabled.
That way I don't have to worry about turning it off when I mail mom. :-)
Greg
--
An authority is a person who can tell you more about something than you really
care to know.
------------------------------
Date: Thu, 03 Jun 1999 13:03:12 -0700
From: "Kurtis D. Rader" <krader@sequent.com>
To: outlaw_torn <outlaw_torn@mailexcite.com>
Subject: Re: damn F@#$(*)@ unix (*%$#&!* pipes
Message-Id: <3756DF80.651F4EBA@sequent.com>
outlaw_torn wrote:
>
> I've been getting very pissed off lately about the number of broken
> pipes I'm receiving when I run my perl scripts. So i was wondering if
> anyone could help me. I need to find out as much as I can about broken
> pipes. What would cause a program to return a broken pipe error on one
> execution and then run perfectly fine the next time (with the exact same
> input). It is really pissing me off. My script doesn't use any forking
> or pipes, so I'm completely at a loss. If you have any solutions to my
> problems or if you know of any general resources about unix / perl and
> broken pipes whether they be texts, web sites or FAQs, please reply.
> I'm very desperate for a solution.
[courtesy copy sent to poster]
A "broken pipe" indicates that a process attempted to write data into a
pipe, FIFO (i.e., a named pipe), or TCP connection when no process had
it open for reading. UNIX will send a SIGPIPE signal to a process which
attempts to do so.
This can happen, for example, if a CGI process is attempting to return
data to a web browser and the user has pressed the stop button. You can
solve this using several strategies. Option #1: install a SIGPIPE
handler, for example
$SIG{PIPE} = \&my_broken_pipe_handler;
and have that routine perform whatever cleanup is necessary before
calling exit(). Option #2: ignore the SIGPIPE (this is from one of my
CGI perl scripts):
#
# We ignore SIGPIPE so that if the connection back to the web server
# is torn down prematurely we don't croak.
#
$SIG{'PIPE'} = 'IGNORE';
With option #2 you may want to check the return value of each syswrite()
or print() invocation and if it indicates failure check if errno ($!)
has been set to EPIPE (see the POSIX module). But unless it is very
expensive to do so the simplest strategy is to let your script write all
of its data and simply exit. This is what I do in most of my CGI perl
scripts since it isn't worth the added complexity to bail out early.
--
Kurtis D. Rader, Staff Engineer email: krader@sequent.com
Sequent Computer Systems voice: +1 503-578-3714
15450 SW Koll Pkwy, MS RHE2-501 http://www.sequent.com
Beaverton, OR 97006-6063
------------------------------
Date: Thu, 03 Jun 1999 14:32:03 -0700
From: TRG Software : Tim Greer <webmaster@chatbase.com>
To: outlaw_torn <outlaw_torn@mailexcite.com>
Subject: Re: damn F@#$(*)@ unix (*%$#&!* pipes
Message-Id: <3756F453.A90EB562@chatbase.com>
outlaw_torn wrote:
>
> Hi all
>
<SNIP "very pissed off" post regarding broken pipes, etc.>
If you can post some revelant code, someone will be more likely to help.
It'd be very difficult to offer any suggestions by guessing.
--
Regards,
Tim Greer: chatmaster@chatbase.com / software@linkworm.com
Chat Base: http://www.chatbase.com | 250,000+ hits daily Worldwide!
TRG Software: http://www.linkworm.com | CGI scripting in Perl/C, & more.
Unix/NT/Novell Administration, Security, Web Design, ASP, SQL, & more.
Freelance Programming & Consulting, Musician, Martial Arts, Sciences.
------------------------------
Date: 3 Jun 1999 21:24:37 GMT
From: cmcphe6584@aol.com (CMcphe6584)
Subject: Re: DBI vs ODBC??
Message-Id: <19990603172437.16926.00000122@ng-fz1.aol.com>
Luke,
> Could someone tell me the difference between DBI and ODBC and which
>method is better to use to interface a program with a database?
I'd always use DBI - it has multiple DBDs
beneath it, so you can plug in your DBD::Oracle
(or whatever) instead of your DBD::ODBC.
The only thing that needs to change in your code
should be the connect stuff (user/pass/db name/type). And if you make these
parameters....
Colin McPherson
------------------------------
Date: Thu, 03 Jun 1999 14:39:00 -0700
From: TRG Software : Tim Greer <webmaster@chatbase.com>
Subject: Re: Determining height and with of uploaded Graphic files
Message-Id: <3756F5F4.C8F52D68@chatbase.com>
Fred Ruffet wrote:
>
> What graphic files ? GIFs, JPGs, BMPs, XPMs,...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Is that relevant to solving the problem? That just seemed odd to me?
> Fred
>
> mraffin@cisclub.acad.emich.edu a icrit dans le message
> <7j0tnc$7ko$1@nnrp1.deja.com>...
> >I need to determine the height and width of graphic files that users
> >upload (via browser) to my site. Is this possible?
> >
> >
--
Regards,
Tim Greer: chatmaster@chatbase.com / software@linkworm.com
Chat Base: http://www.chatbase.com | 250,000+ hits daily Worldwide!
TRG Software: http://www.linkworm.com | CGI scripting in Perl/C, & more.
Unix/NT/Novell Administration, Security, Web Design, ASP, SQL, & more.
Freelance Programming & Consulting, Musician, Martial Arts, Sciences.
------------------------------
Date: Thu, 03 Jun 1999 20:54:58 GMT
From: root@missy.shef.ac.uk (Tony Kennick)
Subject: Re: Im not asking for much
Message-Id: <3756e90a.11276756@missy.shef.ac.uk>
John Callender <jbc@shell2.la.best.com> imparted the following:
:->An analogy that stikes me is that of CPR training (which I did for a
:->while for the Red Cross). When CPR instruction programs were first
:->instituted, there was some resistance from the physician community:
:->these people learning CPR were not doctors; what made them think they
:->could provide care? Well, they could. The non-physicians who learned
:->CPR provided lots of sloppy, inefficient, unprofessional care, and that
:->care has saved lots of lives, since a given heart-attack victim's
:->chances of survival are a lot better if there are a few CPR-trained
:->laypeople on the golf course than if he or she has to hope for an MD to
:->be there.
First off topic, but very important I don't want a few CPR trained
people around when I have a heart attack I want one person who knows
that I need drugs and de-fibrilation and so will go an call the
Paramedics, even if they are on their own and there is no-one to start
CPR.
Perhaps this is relevant after all, you analogy is that doctors are
professional programmers and the weekend script dabblers are those who
have been on a first aid course. One of the most important things
doctors get taught, as important as why 3l of atropine is considered
harmful and what might give someone anaphalatic shock is problem
solving. Perhaps amongst the specific advice on the language, someone
could post a few pointers to sites that explain the philosophy of
programming, effective problem solving.
--
>From Tony Kennick aka Gonzo The Great
http://missy.shef.ac.uk/users/old-firm/
Gonzo: Slang for "the last man standing
at a drinking marathon"
------------------------------
Date: Thu, 03 Jun 1999 15:34:00 +0000
From: you suck <skalar10@hotmail.com>
Subject: images
Message-Id: <3756A067.FED92C45@hotmail.com>
I can't get my images to display when referencing them through my
script.
I always get a broken picture icon.
i'm just using:
print "<img src='pathname'>";
I've tried referencing it through the relative and absolute pathname but
neither works.
The only potential problem i see is that i'm am referencing them from
the cgi-bin...is that ok?
any help please!
thanks,
George
------------------------------
Date: Thu, 03 Jun 1999 15:37:25 +0000
From: you suck <skalar10@hotmail.com>
Subject: Re: images
Message-Id: <3756A135.2FF80383@hotmail.com>
Nevermind i figured it out,
sorry for the bother
thanks,
George
------------------------------
Date: 03 Jun 1999 16:21:44 -0400
From: Uri Guttman <uri@sysarch.com>
Subject: Re: Multi-Inclusive Pattern Match
Message-Id: <x790a1avc7.fsf@home.sysarch.com>
>>>>> "IZ" == Ilya Zakharevich <ilya@math.ohio-state.edu> writes:
IZ> [A complimentary Cc of this posting was sent to Andrew Allen
IZ> <ada@fc.hp.com>],
IZ> who wrote in article <7j6eai$fva$3@fcnews.fc.hp.com>:
>> kgentes@gentek.net wrote:
>> : sub routine that allows me to test for a list
>> : of patterns in a single string. The example I
>> : saw did an "or" of the pattern list, while I
>> : need to do an "and" of the patterns against
>> : the string.
>>
>> Here's one-liner:
>>
>> print $line if !grep($line!~/\b$_\b/,@popstates);
>>
>> 'course, it's rather inefficient, since it has to compile the regexes
>> every time, and doesn't short-circuit.
IZ> What is bad with
IZ> perl -wne '$" = '|'; @l = ...; print if /\b(@l)\b/o' file
that is bad because that is 'or' and the poster wanted 'and'.
maybe a lookahead might work and it will short circuit and compile once:
(tested)
#!/usr/local/bin/perl
@t = qw( foo bar asdf ) ;
$re = join( '', map "(?=.*\\b$_\\b.*)", @t ) ;
print "$re\n" ;
foreach ( <DATA> ) {
print if /$re/ ;
}
__DATA__
asdf foo bar
casdf foo bar
asdf bar
kkd asdf foo bar ddj
prints:
asdf foo bar
kkd asdf foo bar ddj
looks good to me!
uri
--
Uri Guttman ----------------- SYStems ARCHitecture and Software Engineering
uri@sysarch.com --------------------------- Perl, Internet, UNIX Consulting
Have Perl, Will Travel ----------------------------- http://www.sysarch.com
The Best Search Engine on the Net ------------- http://www.northernlight.com
------------------------------
Date: 3 Jun 1999 20:20:39 GMT
From: ada@fc.hp.com (Andrew Allen)
Subject: Re: Multi-Inclusive Pattern Match
Message-Id: <7j6o2n$is0$1@fcnews.fc.hp.com>
Ilya Zakharevich (ilya@math.ohio-state.edu) wrote:
: [A complimentary Cc of this posting was sent to Andrew Allen
: <ada@fc.hp.com>],
: who wrote in article <7j6eai$fva$3@fcnews.fc.hp.com>:
: > kgentes@gentek.net wrote:
: > : sub routine that allows me to test for a list
: > : of patterns in a single string. The example I
: > : saw did an "or" of the pattern list, while I
: > : need to do an "and" of the patterns against
: > : the string.
: >
: > Here's one-liner:
: >
: > print $line if !grep($line!~/\b$_\b/,@popstates);
: >
: > 'course, it's rather inefficient, since it has to compile the regexes
: > every time, and doesn't short-circuit.
: What is bad with
: perl -wne '$" = '|'; @l = ...; print if /\b(@l)\b/o' file'
It does an "or" instead of an "and".
Andrew
------------------------------
Date: Thu, 03 Jun 1999 13:49:12 -0700
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: Password Generator
Message-Id: <3756EA48.D11C30E8@mail.cor.epa.gov>
jatgal@my-deja.com wrote:
>
> Does any one know, any good perl password generators, that will generate
> easy to remember but secure passwords. Please let me know if you know
> any scripts/modules/programs for it or the best way to do it.
You could search on Alta Vista [or the equivalent] for such
a script.
But I haven't seen any password generators that generate
secure passwords which are easy to remember for the average
user. You can't pick a word out of the dictionary and have
security. In fact, picking a word and adding one digit
provides little additional security. Catchphrases and joined
words seem to be too hard for most people to remember.
So.. what are you defining as an 'easy to remember but secure'
password? If you can construct a general form, you can
have Perl gen it for you.
HTH,
David
--
David Cassell, OAO cassell@mail.cor.epa.gov
Senior computing specialist
mathematical statistician
------------------------------
Date: Thu, 03 Jun 1999 13:27:46 -0700
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: Perl Script wanted (to send SMS by WWW)
Message-Id: <3756E542.FEEFF286@mail.cor.epa.gov>
Oliver Timme wrote:
>
> Hello all
>
> I'm looking for a Perl script that can take some values from the
> command line and send some AT commands to a COM Port. I like
> to call that script on a webserver by a HTML Form. The programm
> should take the values and send some AT commands to the port.
>
> As example I have two formfields, lets say <form1> and <form2>.
> The programm should take the values, send an init string
> to the port, like ATZ, then send other commands like:
>
> AT<form1> ..
> AT<form2> ..
>
> For what I need this? Well I'd like to connect a nokia cell
> phone to my webserver and use the Perl programm to pass the
> AT commands to a virtual com port (via Nokia Cell. Data Suite)
> and send some SMS messages. You can also say I need for a
> quick and dirty WWW to SMS gateway.
>
> Any ideas out there?
You might look for Bill Birthisel's Win32::SerialPort
module to do the backend, and the CGI.pm module to do the
front end. I'm assuming you're on a win32 platform, based on
the newsreader you're using and the terms you used.
If so, ActiveState has at least the CGI module prepped
for downloading via the 'ppm' program that came with the
install.
HTH,
David
--
David Cassell, OAO cassell@mail.cor.epa.gov
Senior computing specialist
mathematical statistician
------------------------------
Date: 03 Jun 1999 15:50:08 -0600
From: Eric The Read <emschwar@rmi.net>
Subject: Re: require and the include stack under the covers...
Message-Id: <xkfk8tlar8t.fsf@valdemar.col.hp.com>
Andrew S Gianni <agianni@acsu.buffalo.edu> writes:
> The thing that concerns me is that I'm using perl's benchmarking utility
> timethese() which is running the operation 1000000 times or so for the
> sake of gettnig decent results.
One thing that might be useful to think on: If you really must run the
benchmark 1M times, just to get distinguishable results, then it's quite
possible that the overhead of simply invoking the program is going to so
far outweight the compile time for "use" that it doesn't matter.
That is, unless you're actually going to have 1 million people invoking
this program in short succession, it simply won't matter, and you should
pick the one that more clearly conveys your intent.
-=Eric
------------------------------
Date: Thu, 3 Jun 1999 16:00:44 -0400
From: "Mike Rizzo" <mrizzo@ismd.ups.com>
Subject: Structures in PERL
Message-Id: <7j6mg0$sns9@innsrv.ismd.ups.com>
I am having a little bit of trouble figuring out how to go about creating a
so called structure in PERL.
I have a file that I need to parse through that contains N lines in it.
There is only certain info that I want to grab from the file, here is an
example of the data that i have,
Stop = 43, Color = Red , Address = 1 North Avenue
Stop = 78 , Color = Blue, Address = 2 South Street
That is what the lines look like in the file, now I would like to be able
to store each line in an array, sort of like this,
The name of the array would be TEMPARRAY
and I would like to have it set up so that I could referece the entire
array by calling TEMPARRAY.1 , TEMPARRAY.2, TEMPARRAY.N
Is there any easy way in PERL to accomplish this, if so, I would really
appreciate a little push in the right direction,
THX
Mike Rizzo
------------------------------
Date: 3 Jun 1999 15:19:34 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Structures in PERL
Message-Id: <3756f166@cs.colorado.edu>
[courtesy cc of this posting mailed to cited author]
In comp.lang.perl.misc,
"Mike Rizzo" <mrizzo@ismd.ups.com> writes:
:I am having a little bit of trouble figuring out how to go about creating a
:so called structure in PERL.
Have you read the perldsc manpage yet? The hash is Perl's record
structure.
--tom
--
It won't be covered in the book. The source code has to be useful for
something, after all... :-)
--Larry Wall in <10160@jpl-devvax.JPL.NASA.GOV>
------------------------------
Date: Thu, 03 Jun 1999 14:26:11 -0700
From: TRG Software : Tim Greer <webmaster@chatbase.com>
Subject: Re: Stupid Error 500 [Please Forgive Me... My First Post Here]
Message-Id: <3756F2F3.5FC3EF2E@chatbase.com>
spartanic1123@my-deja.com wrote:
>
> Hello, I am really, really sorry if a message
> like this has been posted recently... Can you be
> kind enough to answer this one for me?
> Anyway... My question has to do with the really
> really dumb 500 Error that you get with cgi
> scripts. I have an account on Hypermart and I
> have created a script that debugs error free (on
> my computer), and when I try to use it, I get
> this error:
>
> exec of /data1/hypermart.net/spartsdesk/cgi-
> bin/view.pl failed, reason: No such file or
> directory (errno = 2)
> [Tue Jun 1 21:31:42 1999] access to
> /data1/hypermart.net/spartsdesk/cgi-bin/view.pl
> failed for [Edited: IP], reason: Premature end of
> script headers
>
> Any help would be appreciated. =)
Doesn't that indicate to you, that you should search at www.dejanews.com
of read come CGI FAQ's?
Your error message shows: "Premature end of script headers", surely you
know what that means? Did you make sure the path to perl is correct for
hypermart? Did you put in a content type? Did you set the permissions to
executable? Did you read hypermart's FAQ/help page regarding CGI access
on their systems? Did you read any of their help pages at all? Do you
have any books about CGI? Yes, this has been posted a lot of times, and
there's never an answer, because there's only guesses. People (like me)
answer with about 5 to 10 questions back to you, because we can't know
"why" as there's far too many reasons for a 500 error, so all we do is
give the most common reasons. Even if you post the code here and I show
you all the errors, then it could still be the incorrect path to perl,
the wrong permissions, maybe you uploaded the script in BINARY and
didn't know you should upload them in ASCII mode, or perhaps you've put
the incorrect path to a file it's trying to open, or? or? OR? Do you see
my point. Your question can't be answered, because no one knows, so
unless you want to pay someone for consulting time, then it's unlikely
that someone will go to hypermart, check all the paths for you, explain
about the content type, explain about permissions and go further to tell
you how to set them and stick around waiting for another question to be
asked that's clearly in many FAQ's all over the Net. Writing Perl
scripts for CGI interfaces is more common then anything else, and of
course a lot of people will run into errors and problems, therefore,
it's painfully obvious that this question has indeed been answered.. or
at least someone has stated mst or all of the reasons for the error.
--
Regards,
Tim Greer: chatmaster@chatbase.com / software@linkworm.com
Chat Base: http://www.chatbase.com | 250,000+ hits daily Worldwide!
TRG Software: http://www.linkworm.com | CGI scripting in Perl/C, & more.
Unix/NT/Novell Administration, Security, Web Design, ASP, SQL, & more.
Freelance Programming & Consulting, Musician, Martial Arts, Sciences.
------------------------------
Date: Thu, 03 Jun 1999 20:04:59 GMT
From: pudge@pobox.com (Chris Nandor)
Subject: Re: The artistic license and perl:
Message-Id: <pudge-0306991605040001@192.168.0.77>
In article <3756BD73.D718D178@xli.com>, Greg Bartels <gbartels@xli.com> wrote:
# my point is that a sufficiently friendly license would / could support
# perl in being adopted by companies similar to the way Red Hat has
# adopted Linux.
You mean like what ActiveState is doing, and has been doing for quite some
time? They contribute to Perl, they have their own Perl distribution,
they provide commercial support and value-added products and services. I
don't know if they use the AL or the GPL for their own internal use.
That might (or might not) be an interesting question to ask people: which
license do you or your organization use when you use perl?
# how many companies look at the AL and dont even bother calling Larry,
# and scrap the idea entirely?
I can't think it would be very many. And I wager it would be fewer than
the number of those that would scrap GPL'd software because of the GNU
GPL.
# "how do keep perl open source, encouraging profit-based companies
# to develop extensions and return it to open-source, and prevent
# the language from forking?"
I don't understand at all what you are asking here. You are putting
things together that don't belong. The issue of perl forking has nothing
to do with the issue of profit-based companies using Perl. Profit-based
companies are irrelevant. You could replace "Chris Nandor" with
"profit-based companies" and the meaning would be the same, wouldn't it?
# There is also such a thing as perception. if people believe
# the license is shakey, and avoid using perl, then it doens't
# really matter whether or not the license is shakey/ambigous
# or not.
"Perception" is the only interesting point I've seen brought up. I am not
inclined to break what has served Perl well for the sake of perception.
I'd rather have it explained better, perhaps through a paper by Larry.
# the whole "open source" movement was, in part, a marketing
# campaign to overcome all the perceptions that the public
# had around "free-ware" and the rather extreme sounding language
# of the Gnu Public License.
Right. They did not rewrite the GPL. We don't need to rewrite the AL.
# as far as mighcrowsoft and perl are concerned, I still say
# that if there is a loophole in the license, it would be the
# microsoft legal team that would find it and exploit it.
# why not just tighten up the license now rather than wait till
# something happens and responding "hey, no fair".
I am still waiting for an example of what this "exploit" would be. How
could Microsoft hurt perl, and how could a better license stop them?
--
Chris Nandor mailto:pudge@pobox.com http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6'])
------------------------------
Date: Thu, 03 Jun 1999 14:37:00 -0700
From: TRG Software : Tim Greer <webmaster@chatbase.com>
Subject: Re: uninitialized value? what am i doing wrong?
Message-Id: <3756F57C.6DBCCDB6@chatbase.com>
Bastiaan S van den Berg wrote:
>
> btw.
>
> plz no replies like 'you should be reading perl faq 18 subsections 4 & 18
> paragraph 12 till 25'
> cause i honestly hate the perldocs.. not so much by form , but more by
> language ..
>
> it reads like the enquirer , like shit..
>
> cul8r
> buZz
I guess that's an opinion. The FAQ's aren't there to teach you how to
program per se, it's more for "help" about some "frequently asked
questions". You couldn't find any info about 'my' anywhere in there?
What's the URL of the FAQ site you went to?
--
Regards,
Tim Greer: chatmaster@chatbase.com / software@linkworm.com
Chat Base: http://www.chatbase.com | 250,000+ hits daily Worldwide!
TRG Software: http://www.linkworm.com | CGI scripting in Perl/C, & more.
Unix/NT/Novell Administration, Security, Web Design, ASP, SQL, & more.
Freelance Programming & Consulting, Musician, Martial Arts, Sciences.
------------------------------
Date: Thu, 03 Jun 1999 21:09:14 GMT
From: dragnet@internalysis.com (Marc Bissonnette)
Subject: Re: where did I go wrong?
Message-Id: <_9C53.2668$5a.4281@news20.bellglobal.com>
In article <MPG.11c07476dc711339989b64@nntp.hpl.hp.com>, lr@hpl.hp.com says...
>
>What, pray tell, is 'Internalysis' (besides your company name :-)???
It was a play on words for "Internet Analysis", it was cool at the time, but
given so many people mess up the email address, I've since regretted it :)
Thanks for the help, works like I need it to, but have now run into another
problem:
since the real data is a list of names and addresses, there are (obviously)
people with the same first or last name.
I need to be able to display the data alphabetically, sorted on fname, lname or
cname. Problem is when the script encounters a duplicate sort field, it (again,
obviously) keeps the last value.
I *know* I've seen how to get around that in a doc or manual, but can't find it
for the life of me. Can someone point me in the right direction?
ex:
Bissonnette|Marc|Consultant|InternAlysis|
Bissonnette|George|Janitor|Some Company|
Doe|George|Widget Maker|Another Company|
sorting alphabically on [0] or [1] above would give me that duplication
error...
--
----------------------------
Marc Bissonnette
InternAlysis
Corporate Internet Research and Results!
http://www.internalysis.com
------------------------------
Date: 3 Jun 1999 15:32:42 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: where did I go wrong?
Message-Id: <3756f47a@cs.colorado.edu>
[courtesy cc of this posting mailed to cited author]
In comp.lang.perl.misc, dragnet@internalysis.com (Marc Bissonnette) writes:
:I'm trying to read in a file, pipe delimited,
That would be "separated".
Delimited: "quote-delimited"
Separated: "hyphen-separated"
Terminated: period-terminated.
--tom
--
"The reason you subscribe to a mailing list is you don't get all
the crap you get on netnews. "
--Dennis Ritchie
------------------------------
Date: 3 Jun 1999 21:35:49 GMT
From: gbacon@itsc.uah.edu (Greg Bacon)
Subject: Re: where did I go wrong?
Message-Id: <7j6sfl$bdm$2@info2.uah.edu>
In article <3756f47a@cs.colorado.edu>,
Tom Christiansen <tchrist@mox.perl.com> writes:
: In comp.lang.perl.misc, dragnet@internalysis.com (Marc Bissonnette) writes:
: :I'm trying to read in a file, pipe delimited,
:
: That would be "separated".
That would be "terminated". :-)
Greg
--
Woody: Hey, Mr. Peterson, there's a cold one waiting for you.
Norm: I know, and if she calls, I'm not here
------------------------------
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 5880
**************************************