[9789] in Perl-Users-Digest
Perl-Users Digest, Issue: 3382 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Aug 6 18:06:48 1998
Date: Thu, 6 Aug 98 15:01:10 -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, 6 Aug 1998 Volume: 8 Number: 3382
Today's topics:
Re: [Q] Problems building perl 5.004_4 on SGI <rra@stanford.edu>
Re: ANNOUNCE: Free Perl Books for 5.005 - CRC Errors in <tchrist@mox.perl.com>
Re: ANNOUNCE: Free Perl Books for 5.005 - CRC Errors in <tchrist@mox.perl.com>
BIZARRE: killing window kills bg perl process <kj0@mailcity.com>
Re: c.l.p.moderated: not much traffic? (Craig Berry)
Re: c.l.p.moderated: not much traffic? <rra@stanford.edu>
Re: Can't Match Multi-Line Pattern <palincss@tidalwave.net>
Re: comp.lang.perl.announce redux <rra@stanford.edu>
Re: DBM Crashes and momory out errors (Nem W Schlecht)
Re: gethostbyaddr droby@copyright.com
Re: HELP on Perl <rootbeer@teleport.com>
Re: help? writing a SMTP mail program using telnet... (Greg Bacon)
Re: hiding user input <rra@stanford.edu>
Re: hiding user input <birgitt@hbg.citnet.de>
Re: hiding user input <upsetter@ziplink.net>
Re: hiding user input (Gary L. Burnore)
Re: Including form with perl script <rootbeer@teleport.com>
Re: Library to sort Kanji <rootbeer@teleport.com>
Re: MAJOR PROBLEMS <palincss@tidalwave.net>
Re: Package visibility <rootbeer@teleport.com>
Perl+ftp (MIKE KY)
Re: PERLDOC for Win32 ?? <maierc@chesco.com>
Re: problem writing to a new file <rootbeer@teleport.com>
Re: re first language <palincss@tidalwave.net>
Re: READS LOCATION WINDOW & POINTS TO NEW URL <rootbeer@teleport.com>
Retrieving the value of a matched pattern (Jason Patton)
Re: Retrieving the value of a matched pattern (Greg Bacon)
Re: Setting $ENV{LD_LIBRARY_PATH} doesn't work (Mike Wescott)
Re: socket problem <rra@stanford.edu>
Re: Teaching Perl tarik@alkasab.com
Re: Variable Length & Memory? nanobreath@my-dejanews.com
Re: warnings <rootbeer@teleport.com>
Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 06 Aug 1998 14:33:41 -0700
From: Russ Allbery <rra@stanford.edu>
Subject: Re: [Q] Problems building perl 5.004_4 on SGI
Message-Id: <m3ww8llrre.fsf@windlord.Stanford.EDU>
k y n n <kj0@mailcity.com> writes:
> Help! Has anyone managed to build perl 5.004_4 on IRIX 6.3/mips 7.00?
> I'm *almost* there, but the resulting executable bombs one test, bop.t
> (bitwise operators). In fact, it fails only 6 evaluations out of 18 in
> that test. For example, it thinks (~0 > 0) is false.
Does it work better if you compile without optimization? I think I've
seen this one before....
--
#!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker
$^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD gD,
00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{
rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/ #y,d,s,(\$.),$1,gee,print
------------------------------
Date: 6 Aug 1998 21:40:19 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: ANNOUNCE: Free Perl Books for 5.005 - CRC Errors in text version archive?
Message-Id: <6qd7s3$i8p$2@csnews.cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc,
"Joel Noble" <jnoble@mediaone.com> writes:
:Tom, Brian's right. The server's sending it as text/plain. That is wrong.
:The browser is free to assume it can change line-endings, etc., since it was
:TOLD by the server that it was text.
:
:Microsoft is plenty blameworthy in general. But not in this case.
Hold on.
200 OK
Connection: close
Date: Thu, 06 Aug 1998 21:38:09 GMT
Accept-Ranges: bytes
Server: Apache/1.2.6 mod_perl/1.11
Content-Encoding: x-gzip
Content-Length: 963743
Content-Type: text/plain
ETag: "7107-eb49f-35c5fe60"
Last-Modified: Mon, 03 Aug 1998 18:16:00 GMT
Client-Date: Thu, 06 Aug 1998 21:38:09 GMT
Client-Peer: 208.201.239.48:80
The content-encoding is indeed x-gzip. Are you saying it should
be x-gtar instead?
I have never seen a problem with this once a Unix box.
--tom
--
If I had only known, I would have been a locksmith. --Albert Einstein
------------------------------
Date: 6 Aug 1998 21:36:44 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: ANNOUNCE: Free Perl Books for 5.005 - CRC Errors in text version archive?
Message-Id: <6qd7lc$i8p$1@csnews.cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc,
"Joel Noble" <jnoble@mediaone.com> writes:
:Tom, Brian's right. The server's sending it as text/plain. That is wrong.
:The browser is free to assume it can change line-endings, etc., since it was
:TOLD by the server that it was text.
Then why does it work for me with Netscape or with LWP?
--tom
--
"Do we define evil as the absence of goodness? It seems only logical
that shit happens--we discover this by the process of elimination."
--Larry Wall
------------------------------
Date: 6 Aug 1998 21:42:22 GMT
From: k y n n <kj0@mailcity.com>
Subject: BIZARRE: killing window kills bg perl process
Message-Id: <6qd7vu$1tr@news1.panix.com>
I have a perl script that runs fine in the background (e.g., "foo &")
as long as its parent shell is up, but dies immediately if one kills
the shell, just as if it were a foreground process. I've never seen
this behavior before, nor have ben able to reproduce it with simpler
test scripts.
The OS is IRIX6.2 and the perl version is 5.004_4.
Does anybody have any idea of what could be causing this behavior? Is
there anyway to catch perl's last words as it's going down (i.e. when
the shell is killed)?
Thanks,
K.
------------------------------
Date: 6 Aug 1998 20:59:33 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: c.l.p.moderated: not much traffic?
Message-Id: <6qd5fl$r2d$2@marina.cinenet.net>
Matt Knecht (hex@voicenet.com) wrote:
: brian d foy <comdog@computerdog.com> wrote:
: >it's also been my experience with mailing lists and such that most
: >of the people (the "Silent Majority" in Nixon-speak) lurk, so that
: >the number of messages isn't a reliable measure of worth.
:
: I'm enjoying clpm just for the lurk value. Not many threads, but most
: of them have been interesting, and content rich. Definitly a great
: group.
You've just illustrated one of my least favorite things about
clp.moderated -- it raised from 2 to 3 the clp*m* ambiguity count. Even
clp.mod now has 2 possible meanings. Hey, perhaps we should rename
clp.announce to clp.messages...
---------------------------------------------------------------------
| Craig Berry - cberry@cinenet.net
--*-- Home Page: http://www.cinenet.net/users/cberry/home.html
| Member of The HTML Writers Guild: http://www.hwg.org/
"Every man and every woman is a star."
------------------------------
Date: 06 Aug 1998 14:31:46 -0700
From: Russ Allbery <rra@stanford.edu>
Subject: Re: c.l.p.moderated: not much traffic?
Message-Id: <m3zpdhlrul.fsf@windlord.Stanford.EDU>
John Porter <jdporter@min.net> writes:
> John Klassa wrote:
>> Is it me, or is the traffic on c.l.p.moderated pretty much a trickle?
> Maybe your sense of normal has been twisted by the daily deluge on
> clp.misc. :-)
Yeah, I think that's most of it. :) If one looks at the moderated groups
for other languages, they tend to be a good bit lower in volume than the
unmoderated groups.
'sides, it takes at least three to six months for *any* new newsgroup,
regardless of interest, to really hit its stride.
--
#!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker
$^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD gD,
00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{
rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/ #y,d,s,(\$.),$1,gee,print
------------------------------
Date: Thu, 06 Aug 1998 18:31:15 -0700
From: Steve Palincsar <palincss@tidalwave.net>
Subject: Re: Can't Match Multi-Line Pattern
Message-Id: <35CA58E3.3995@tidalwave.net>
Craig Berry wrote:
> For some reason, the /m and /s modifiers cause far more confusion than
> seems warranted. See Freidl's brilliant explanation of these in
That's because in both perlre and the Camel they are essentially
not explained.
> _Mastering Regular Expressions_ for full enlightenment. In brief,
> though:
>
> /m has only one effect -- changing how ^ and $ are interpreted. Without
> /m, they match only at the beginning and end of the entire string; with
> it, they can also match at internal newlines. Your regex has no ^ or $,
> so /m is irrelevant.
>
> /s has only one effect -- changing how . is interpreted. Without /s, .
> matches any character except newline. With it, it matches any character
> *including* newline. You want your .* above to span newlines, so /s is
> what you need.
>
Your explanation certainly helped me. Before I had to stop and go
to a meeting, I was researching this identical point at work,
having forgotten which /[ms] did which. I didn't get as far as
Friedl, but did check the two I mentioned above and found
no help there.
------------------------------
Date: 06 Aug 1998 14:01:16 -0700
From: Russ Allbery <rra@stanford.edu>
Subject: Re: comp.lang.perl.announce redux
Message-Id: <m3yat1n7tv.fsf@windlord.Stanford.EDU>
Abigail <abigail@fnx.com> writes:
> Russ Allbery (rra@stanford.edu) wrote on MDCCCI September MCMXCIII:
>> I don't know if anyone has pointed this out yet, but....
>> de.comp.lang.perl
>> fj.comp.lang.perl
>> fr.comp.lang.perl
>> han.comp.lang.perl
>> it.comp.lang.perl
>> no.it.programmering.perl
>> relcom.comp.lang.perl
>> would seem to be the appropriate places to post articles about Perl in
>> German, Japanese, French, Korean, Italian, Norwegian, and Russian.
> Actually, I would expect them to be appropriate places to post articles
> about Perl in Germany, Japan, France, Korea, Italy, Norway and Russia. A
> small, but essential difference.
Yes, but you're wrong. None of those hierarchies with the possible
exception of relcom.* are regional hierarchies. They're all world-wide
*language* hierarchies.
> We are talking about the exceptional posting. I rather read just clpa
> and skip the occasional posting in Italian or French, then to have to
> read perl groups in various languages for the occasional there that has
> world wide interest.
By and large I agree with you, and I don't mind the occasional posting in
another language. I'm just trying to make the point that this group (and
clpa) are not *intended* to be the be-all and end-all of Perl newsgroups
and that there are other groups out there for other languages and a
general expectation that the vast majority of traffic in comp.* is going
to be in English.
> Well, of the 7 groups you mentioned, PSInet doesn't carry 4 of them.
Hadn't you previously mentioned that PSI also doesn't carry
comp.lang.perl.moderated? I'm somewhat unimpressed by this news provider.
--
#!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker
$^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD gD,
00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{
rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/ #y,d,s,(\$.),$1,gee,print
------------------------------
Date: 6 Aug 1998 15:49:07 -0500
From: nem@abattoir.cc.ndsu.nodak.edu (Nem W Schlecht)
Subject: Re: DBM Crashes and momory out errors
Message-Id: <6qd4s3$7mp@abattoir.cc.ndsu.nodak.edu>
[courtesy copy e-mailed to author(s)]
In comp.lang.perl.misc, <caf@netcity.gr> wrote:
>I have the following script.
>
>"C.DB",O_RDWR|O_CREAT,0777,$DB_HASH; for ($x=0;$x < 100000000;$x++) { $q{"1"}
>.= asdf asd fa sd fa sdfas df asd f asd f as df asdf as df as df as df as df
[deletia]
>for ($x=0;$x < 100000000000000000;$x++) { $q{"$x"} = "sdfsdf asdf asd fa sd
>
>The momory usage stays low, and the db can keep up with GB of size.
>am i missing something?
In the first script, you are appending data onto a single value ($q{"1"}
.= ...). In order for perl to tell Berkeley DB what to store, it reads
the current value into memory, adds the text onto the end, and then it is
stored back in the database. Each instance requires the entire string to
be brought into memory in order for the append to occur.
In your second script, a new key is used for each value ($q{"$x"} = ...),
which means that perl only needs to keep the single, current value in
memory. All other instances are written to the database and never re-read
or kept in memory.
--
Nem W Schlecht nem@plains.nodak.edu
NDUS UNIX SysAdmin http://www.nodak.edu/~nem/
"Perl did the magic. I just waved the wand."
------------------------------
Date: Thu, 06 Aug 1998 21:02:19 GMT
From: droby@copyright.com
Subject: Re: gethostbyaddr
Message-Id: <6qd5kr$ndv$1@nnrp1.dejanews.com>
In article <MPG.10339339a3d0832b989755@nntp.hpl.hp.com>,
lr@hpl.hp.com (Larry Rosler) wrote:
> [Posted to comp.lang.perl.misc and a copy mailed.]
>
> In article <6qclq9$rgi$1@nnrp1.dejanews.com> on Thu, 06 Aug 1998 16:32:09
> GMT, droby@copyright.com <droby@copyright.com> says...
> ...
> > A common idiom is something like
> >
> > $ip_address = "209.67.73.165";
> > $hostname = gethostbyaddr(pack('C4', split(/\./, $ip_address), AF_INET);
> >
> > Hope this helps!
>
> It helps even more if you replace the left parenthesis after 'split' by a
> space. Then at least it compiles!
>
Indeed. Or if the first right paren were the double right paren I thought I
typed.
Teach me to run the code before posting it. Or to cut and paste from actual
working code - I mean, I do have actual working code using that, with matching
parens and everything!
It's also missing the necessary
use Socket;
so AF_INET is in fact undefined. So it doesn't do much more than compile...
Someone put better code for this elsewhere in this thread anyway,using
inet_aton instead of that split and pack.
I stand humbled.
--
Don Roby <droby@copyright.com>
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Thu, 06 Aug 1998 21:43:57 GMT
From: Tom Phoenix <rootbeer@teleport.com>
Subject: Re: HELP on Perl
Message-Id: <Pine.GSO.4.02.9808061434080.6559-100000@user2.teleport.com>
On Wed, 5 Aug 1998, Hitendra Patel wrote:
> Subject: HELP on Perl
Please check out this helpful information on choosing good subject
lines. It will be a big help to you in making it more likely that your
requests will be answered.
http://www.perl.com/CPAN/authors/Dean_Roehrich/subjects.post
> I'm not a programmer but I need a program to manipulation the file
> below
Your message was unclear. Are you wanting someone to teach you to be a
programmer, or are you wanting to hire a programmer? For hiring, check out
the newsgroups with 'jobs' in the name. If you want classes, let me know
by private email. Thanks!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: 6 Aug 1998 21:08:39 GMT
From: gbacon@cs.uah.edu (Greg Bacon)
Subject: Re: help? writing a SMTP mail program using telnet...
Message-Id: <6qd60n$15f$17@info.uah.edu>
In article <35CA1338.50B9136F@this.hak>,
Stephen D Gagliardi <look@this.hak> writes:
: i am in the process of writing a perl script that opens telnet opens the
: SMTP mail server at its aloted port...
: and sending mail that way.. since i can use it any where and only have
: to have acces to telnet..
Don't! The Net::SMTP module already does this although it suffers
from having to reinvent the spooling wheel if the SMTP server is down.
Stick with sendmail or qmail.
Greg
--
VMS is a text-only adventure game. If you win you can use Unix.
-- Bill Davidsen
------------------------------
Date: 06 Aug 1998 14:05:41 -0700
From: Russ Allbery <rra@stanford.edu>
Subject: Re: hiding user input
Message-Id: <m3vho5n7mi.fsf@windlord.Stanford.EDU>
Chris Nandor <pudge@pobox.com> writes:
> Oh my. Would they make any LESS money if Burnore -- or anbody -- does
> or does not have X-No-Archive? Please.
Sure. DejaNews cannot claim to have a complete archive. They would
probably make more money if they could.
Chris, were you around when DejaNews started? Did you follow the
discussions that led to the creation of X-No-Archive in the first place?
I don't believe you realize how *many* people were upset and just *how*
angry they were.
> What if *I* decided to archive clp.misc, and made it available for free,
> without ads? Would that be OK?
It is generally considered to be good manners, if you are maintaining an
archive of any sort, to honor the X-No-Archive header. Something along
those lines is likely to be put into the next revision of the news
standards, after which point if you were maintaining a publically
accessible archive and did not honor the header, and this caused problems
for someone, it's quite likely you could be sued and would lose.
> I don't understand this at all. DejaNews is a wonderful service. If
> they did not make a profit, it would not exist at all. I would much
> rather it existed, as would most everybody.
> This is unfathomable.
You seem to be under the impression that I think DejaNews is bad. That's
not what I'm saying. I'm saying that the semantics of Usenet do not
include archiving for indefinite periods of time, and that when a service
is created that changes those semantics, having an opt-out mechanism is
honestly the least that one could expect.
--
#!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker
$^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD gD,
00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{
rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/ #y,d,s,(\$.),$1,gee,print
------------------------------
Date: Thu, 06 Aug 1998 16:08:18 +0000
From: Birgitt Funk <birgitt@hbg.citnet.de>
Subject: Re: hiding user input
Message-Id: <35C9D4F2.688C7482@hbg.citnet.de>
Chris Nandor wrote:
>
> In article <m3u33qnyn4.fsf@windlord.Stanford.EDU>, Russ Allbery
> <rra@stanford.edu> wrote:
>
> # birgitt <birgitt@my-dejanews.com> writes:
> #
> # > Oh, I would agree strongly, but I don't understand how Dejanews makes
> # > money of the archives.
> #
> # > I got access to My DejaNews at no other additional cost than I have to
> # > pay to get www access through my local ISP. Who pays for me being able
> # > to access the archives ? From whom does DejaNews gets money to provide
> # > them ?
> #
> # Advertisers. The banner ads are paying for it.
> #
> # > The only thing I understood so far, is that they earn money through
> # > selling advertisement space. And I certainly don't like their dependency
> # > from advertisers or partners like AMAZON for example.
> #
> # Precisely.
>
> Oh my. Would they make any LESS money if Burnore -- or anbody -- does or
> does not have X-No-Archive? Please.
>
> What if *I* decided to archive clp.misc, and made it available for free,
> without ads? Would that be OK? Well, what if the page was getting a ton
> of hits, and I need to pay to maintain it, because my ISP wanted to charge
> for all those hits? Then would ads be OK, if I made no profit, but the
> money just went to pay for my costs? Well, what if I overestimated my
> costs, and got profits. Then what? Does it become "bad" all of a
> sudden? Or what if I decide to, since I am pulling in some money for
> costs anyway, raise the price of the ads, so I can make a small profit.
> Is that where it turns bad?
>
> I don't understand this at all. DejaNews is a wonderful service. If they
> did not make a profit, it would not exist at all. I would much rather it
> existed, as would most everybody.
>
> This is unfathomable.
>
Well, I like dejanews a lot, but got somewhat confused.
I don't believe that if I decided to not let archive my posts that
they would loose money, nor do they directly gain money if I post
through them as long as they offer access to the archives and a
mailbox at no cost and their archives remain as compre-
hensive as possible.
If advertisers pay them a lot and they use it to provide something
useful, that is fine with me, too.
I thought I missed any other aspect of how they make profit when
I read Russ Allbery's post.
Thanks for the replies.
Birgitt Funk
------------------------------
Date: 6 Aug 1998 21:14:41 GMT
From: Scratchie <upsetter@ziplink.net>
Subject: Re: hiding user input
Message-Id: <6qd6c1$7rt@fridge.shore.net>
Russ Allbery <rra@stanford.edu> wrote:
: Chris, were you around when DejaNews started? Did you follow the
: discussions that led to the creation of X-No-Archive in the first place?
: I don't believe you realize how *many* people were upset and just *how*
: angry they were.
Are those discussions archived on DejaNews? :)
--Art
--------------------------------------------------------------------------
National Ska & Reggae Calendar
http://www.agitators.com/calendar/
--------------------------------------------------------------------------
------------------------------
Date: Thu, 06 Aug 1998 21:41:03 GMT
From: gburnore@databasix.com (Gary L. Burnore)
Subject: Re: hiding user input
Message-Id: <35ca22d7.239087075@nntpd.databasix.com>
On 6 Aug 1998 21:14:41 GMT, in article <6qd6c1$7rt@fridge.shore.net>,
Scratchie <upsetter@ziplink.net> wrote:
>Russ Allbery <rra@stanford.edu> wrote:
>
>: Chris, were you around when DejaNews started? Did you follow the
>: discussions that led to the creation of X-No-Archive in the first place?
>: I don't believe you realize how *many* people were upset and just *how*
>: angry they were.
>
>Are those discussions archived on DejaNews? :)
If there's not a place for a Ba da bump. There's not one.
--
I DO NOT WISH TO RECEIVE EMAIL IN REGARD TO USENET POSTS
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ][3:]3^3:]33][:]3^3:]3]3^3:]3]][3
| ][3:]3^3:]33][:]3^3:]3]3^3:]3]][3
DOH! | ][3:]3^3:]33][:]3^3:]3]3^3:]3]][3
| ][3 3 4 1 4 2 ]3^3 6 9 0 6 9 ][3
Special Sig for perl groups. | Official Proof of Purchase
===========================================================================
------------------------------
Date: Thu, 06 Aug 1998 21:27:21 GMT
From: Tom Phoenix <rootbeer@teleport.com>
Subject: Re: Including form with perl script
Message-Id: <Pine.GSO.4.02.9808061417080.6559-100000@user2.teleport.com>
On Thu, 6 Aug 1998 prakashpatel@hotmail.com wrote:
> I want to know how to add my form right in the script,
> instead of making .html document and then using get or post method.
I'm not sure what you mean. Maybe you want a here-document.
> For e.g. i know one can do "print "<FORM>";".
Your use of quote marks is odd. But maybe you mean that you can read text
in from a file and output it. Okay.
> But i need to know if i use text or radio or some button, how can i
> access those variable in the same script.
Nope, you lost me again. Buttons aren't variables. But (in any case) it's
all just text to perl. Just output the right text, and you'll be fine. If
you're not sure what text to output, though, the docs, FAQs, and
newsgroups about HTML and related issues might be what you need. If you
want to use a Perl module to process the input and produce the output,
there are several available on CPAN. Hope this helps!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Thu, 06 Aug 1998 21:06:04 GMT
From: Tom Phoenix <rootbeer@teleport.com>
Subject: Re: Library to sort Kanji
Message-Id: <Pine.GSO.4.02.9808061405380.6559-100000@user2.teleport.com>
On Thu, 6 Aug 1998 brobinson1@my-dejanews.com wrote:
> I am in need of something to help me sort Kanji.
If there's a module which does what you want, it should be listed in
the module list on CPAN. If you don't find one to your liking, you're
welcome and encouraged to submit one! :-) Hope this helps!
http://www.perl.org/CPAN/
http://www.perl.com/CPAN/
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Thu, 06 Aug 1998 18:33:23 -0700
From: Steve Palincsar <palincss@tidalwave.net>
Subject: Re: MAJOR PROBLEMS
Message-Id: <35CA5962.DE@tidalwave.net>
Andy Lester wrote:
>
> : I'm working on a simple email form script the entir script looks correct
> : but when i submit the form on the webpage netscape come back and displays
> : an error message that says "Out of Memory!" does anyone know what this
> : problem could be
>
> It would seem that you're out of memory.
>
> HTH,
> xoox,
> Andy
>
And perhaps a brief glance at the script might help identify
what was causing this error. I think the crystal ball's out
for polishing. ;-)
------------------------------
Date: Thu, 06 Aug 1998 21:33:51 GMT
From: Tom Phoenix <rootbeer@teleport.com>
Subject: Re: Package visibility
Message-Id: <Pine.GSO.4.02.9808061427490.6559-100000@user2.teleport.com>
On Thu, 6 Aug 1998 livshits@acm.org wrote:
> Suppose I have defined module M and two packages in it,
> M::A and M::B. I want M::A to be visible whenever the user
> says 'use JS' and M::B to be invisible unless the user
> exports it explicitly.
(JS?) Every package is visible everywhere. There are no invisible
packages. But you don't need to list every package variable in @EXPORT or
@EXPORT_OK, of course.
Hope this helps!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Thu, 6 Aug 1998 16:00:59 -0400 (EDT)
From: MIKE_KY@webtv.net (MIKE KY)
Subject: Perl+ftp
Message-Id: <4478-35CA0B7B-17@newsd-151.iap.bryant.webtv.net>
Does anyone know of a really good ftp program written in perl that can
capture multiple files off the web and ftp them to the server?
------------------------------
Date: Wed, 05 Aug 1998 10:08:06 -0400
From: Charles Maier <maierc@chesco.com>
Subject: Re: PERLDOC for Win32 ??
Message-Id: <35C86746.25D92C5D@chesco.com>
dturley@pobox.com wrote:
>
> In article <35C81B5A.A504ACC6@chesco.com>,
> maierc@chesco.com wrote:
> > Is there no perdoc executable for the Win32 port of Perl??
>
> Get the GS binary dist:
>
> http://www.perl.com/CPAN-local/ports/win32/Standard/x86/perl5.00402-bindist04-bc
> .tar.gz
LOL... a "tar.gz" binary release for a Win32 executable?
Thanks.. I will try to get it from there.
--
Chuck Maier
CDM Consulting Services
http://www.cdmcon.com
(610) 942-2726
------------------------------
Date: Thu, 06 Aug 1998 21:56:36 GMT
From: Tom Phoenix <rootbeer@teleport.com>
Subject: Re: problem writing to a new file
Message-Id: <Pine.GSO.4.02.9808061455581.6559-100000@user2.teleport.com>
On Thu, 6 Aug 1998, Greg Ferris wrote:
> open(USER, ">$in{check}";
(Did you leave off a close paren?) Even when your script is "just an
example" (and perhaps especially in that case!) you should _always_ check
the return value after opening a file. Hope this helps!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Thu, 06 Aug 1998 18:25:50 -0700
From: Steve Palincsar <palincss@tidalwave.net>
Subject: Re: re first language
Message-Id: <35CA579E.173E@tidalwave.net>
ray wrote:
> Do you think at this stage of the game, that I should perhaps
> investigate learning assembly to assist with my understanding of Perl, C
No. It won't help you understand perl at all. Perl is a very high
level language, whereas you don't get much lower level than assembler.
> and other languages?
>
> Also, I would like to mention, that if I could be a cook, I would be
> very happy.
Learning perl won't hely you with cooking either. ;-)
------------------------------
Date: Thu, 06 Aug 1998 21:46:06 GMT
From: Tom Phoenix <rootbeer@teleport.com>
Subject: Re: READS LOCATION WINDOW & POINTS TO NEW URL
Message-Id: <Pine.GSO.4.02.9808061445090.6559-100000@user2.teleport.com>
On Thu, 6 Aug 1998, Chris Bell wrote:
> Subject: READS LOCATION WINDOW & POINTS TO NEW URL
Please check out this helpful information on choosing good subject
lines. It will be a big help to you in making it more likely that your
requests will be answered.
http://www.perl.com/CPAN/authors/Dean_Roehrich/subjects.post
> Is is possible to read the location window in Netscape and IE
> and point to new URL.
It sounds as if you're trying to get a browser to do something. The docs,
FAQs, and newsgroups about browsers should be able to help you with that.
Good luck!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Thu, 06 Aug 1998 16:37:54 -0500
From: jpatton@dazel.com (Jason Patton)
Subject: Retrieving the value of a matched pattern
Message-Id: <jpatton-0608981637540001@athens.dazel.com>
When matching a pattern, where you know the format of the pattern but not
the actual values therin, what is the best way to retrieve that value??
Example: You have a program that reads in text that contains a URL
somewhere within. You want to determine the exact URL so that you can
create a valid HREF tag around the text. Sure you can match the http://
at the beginning of the string and the .html at the end, but how do you
determine the value of the text in between?
This seems to be a recurring problem for me. I always have to come up
with some bizzarre hack to find the unknown value. There has got to be a
sane way to do this - despite the lack of attention to the problem by the
perl faq and all of the perl books that I own.
------------------------------
Date: 6 Aug 1998 21:40:38 GMT
From: gbacon@cs.uah.edu (Greg Bacon)
Subject: Re: Retrieving the value of a matched pattern
Message-Id: <6qd7sm$15f$19@info.uah.edu>
In article <jpatton-0608981637540001@athens.dazel.com>,
jpatton@dazel.com (Jason Patton) writes:
: When matching a pattern, where you know the format of the pattern but not
: the actual values therin, what is the best way to retrieve that value??
Read the perlre manpage. Search for `backref'.
Greg
--
As I stood before the gates I realized that I never want to be as certain
about anything as were the people who built this place.
-- Rabbi Sheila Peltz, on her visit to Auschwitz
------------------------------
Date: 06 Aug 1998 17:35:10 -0400
From: wescott@cygnus.ColumbiaSC.NCR.COM (Mike Wescott)
Subject: Re: Setting $ENV{LD_LIBRARY_PATH} doesn't work
Message-Id: <x4d8adaj5d.fsf@cygnus.ColumbiaSC.NCR.COM>
In article <m3hfzqwhsr.fsf@xray.bmc.uu.se> Remco Wouts <remco@xray.bmc.uu.se> writes:
> hivnor@shore.net (Todd Hivnor) writes:
> > I get DynaLoader errors for the Oracle driver unless I set
> > LD_LIBRARY_PATH. But the bizzare thing is that I have to set
> > LD_LIBRARY_PATH in a csh script which spawns my Perl script.
> Nothing strange with that. Do you really think that the environment
> for the perl interpreter changes if you set and environment variable
> within your perl script?? I wouldn't think so.
I would. What's hapening is that ld.so won't rescan the process's environment.
It's already done it once, well before the interpreter ever gets started.
> Try the following as
> your shebang line(s):
> #!/bin/sh -- # -*- perl -*-
> eval 'exec env LD_LIBRARY_PATH=whatever /usr/bin/perl $0 ${1+"$@"}'
> if $running_under_some_shell;
> #follow with the rest of your script
That (or a variant thereof) should work. It will set LD_LIBRARY_PATH
prior to ld.so's first invocation for the perl process. Or perhaps the DBD
modules can be compiled with LD_RUN_PATH set, or symlink the required
library in /usr/lib.
--
-Mike Wescott
mike.wescott@ColumbiaSC.NCR.COM
------------------------------
Date: 06 Aug 1998 14:06:43 -0700
From: Russ Allbery <rra@stanford.edu>
Subject: Re: socket problem
Message-Id: <m3soj9n7ks.fsf@windlord.Stanford.EDU>
Justin Perkins <jperkins@wtmail.wtamu.edu> writes:
> I tried to use the socket module but it requires other modules...and the
> one I couldn't get to work was Dynaloader.pm and Config.pm and these
> didn't work well because I had to port them over from another version of
> perl. I don't have any for Novell's perl.
Is there any particular reason why you have to use Novell's Perl? It
sounds like a rather non-functional version if Socket won't work right.
--
#!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker
$^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD gD,
00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{
rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/ #y,d,s,(\$.),$1,gee,print
------------------------------
Date: Thu, 06 Aug 1998 21:41:29 GMT
From: tarik@alkasab.com
Subject: Re: Teaching Perl
Message-Id: <6qd7u9$qv9$1@nnrp1.dejanews.com>
In article <6qbcj8$5a3$1@rand.dimensional.com>,
Daniel Grisinger <dgris@rand.dimensional.com> wrote:
>
> She expects them to at least be able to puzzle their way through
> my code while they get up to speed. I won't be expected to teach
> them from everything, and they are experienced programmers, so
> a one day overview seems like it should be sufficient to get them
> started (well, maybe not, but it's all the time she's willing to
> spare). They also won't be doing any heavy duty development (I hope),
> just maintenance on the stuff that I'm writing.
>
Well then the answer to the original question (which was, "What would be an
appropriate lesson plan for teaching Perl") depends critically on the code
that you want them to understand, doesn't it?
Obviously, someone who truly wants to be a functional Perl programmer needs to
know both references and regular expressions.
But short of posting your code here, only you can decide what people need to
know to read your code. If you write stuff heavy on complex data structures,
then you need to teach them references. If you do lots of complicated regular
expressions, then you'll probably need to teach them about those. If you have
both, then you *have* to teach them both, it seems to me.
(BTW, the comment that teaching people to access the documentation is a good
one; there's so much clearly written documentation that even a few minutes on
how to access it can drastically lighten your teaching load.)
Terry
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Thu, 06 Aug 1998 21:08:41 GMT
From: nanobreath@my-dejanews.com
Subject: Re: Variable Length & Memory?
Message-Id: <6qd60q$ocu$1@nnrp1.dejanews.com>
> Hop on over to Fry's. Give them $15. Go home with 16 Megs of memory.
> And then ask yourself, "Do I really care that $db_file_marker might
> cost me .00095 cents more than $dbfm?"
> If you don't use a pathologically bad case (I imagine some knucklehead
> here posting a program that uses million character identifiers) any
> difference in memory would fade into the background noise.
I'm currently immersing myself in a zen-like state to fully and completely
understand perl's regexps ... so if I end up being a little anal because of
it, well, at least you know why!
--
nanobreath@my-dejanews.com
open source everything
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Thu, 06 Aug 1998 21:53:46 GMT
From: Tom Phoenix <rootbeer@teleport.com>
Subject: Re: warnings
Message-Id: <Pine.GSO.4.02.9808061449580.6559-100000@user2.teleport.com>
On Thu, 6 Aug 1998, Bob Lockie wrote:
> I get the warning when I run something from perl4 (unix) on
> Perl5 (intel) "Use of uninitialized value at CGI.pkg line 374.".
See what perldiag has to say about your warnings, and how to avoid them.
> Without changing the unix built code how can I make the warnings go
> away (I think they are screwing up my web server)?
Are you saying that you don't want to change the program but you just want
the webserver to ignore the warnings? Maybe the docs, FAQs, and newsgroups
about your webserver can tell you how to configure it to ignore warnings -
or they can tell you why you shouldn't ignore warnings! :-)
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: 12 Jul 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Special: Digest Administrivia (Last modified: 12 Mar 98)
Message-Id: <null>
Administrivia:
Special notice: in a few days, the new group comp.lang.perl.moderated
should be formed. I would rather not support two different groups, and I
know of no other plans to create a digested moderated group. This leaves
me with two options: 1) keep on with this group 2) change to the
moderated one.
If you have opinions on this, send them to
perl-users-request@ruby.oce.orst.edu.
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V8 Issue 3382
**************************************