[12775] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 185 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Jul 18 21:07:45 1999

Date: Sun, 18 Jul 1999 18:05:09 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Sun, 18 Jul 1999     Volume: 9 Number: 185

Today's topics:
    Re: Can a .html file be executable? (Tony Kennick)
    Re: Can a .html file be executable? (Abigail)
    Re: Can a .html file be executable? (Abigail)
    Re: CGI database question (Abigail)
    Re: CGI::Fast vs. Apache <uri@sysarch.com>
    Re: Closing Web Browser Connection on Lengthy Processes <revjack@radix.net>
    Re: compliled perl in a client-server production enviro (Tony Kennick)
    Re: find a line which matchs two values, and change the (Tad McClellan)
    Re: Hard question to Gurus! How to do http request as s (Abigail)
    Re: HHHHEEEEEEELLLLLLPPPPPPP!!!!!!!!!! <uri@sysarch.com>
    Re: How to disable auto-loading? (Abigail)
    Re: Keeping competitors out (Abigail)
    Re: lexical $_ with threads question? <dan@tuatha.sidhe.org>
    Re: newbie needs help! (Abigail)
        PERL Q'S ANSWERED! <director@removethisitem.allexperts.com>
    Re: Sending Attachments with email <dan@tuatha.sidhe.org>
    Re: split() (Abigail)
    Re: String (Neko)
        Subst. Vars from Readin Txt-File <arndt@arweb.de>
    Re: Subst. Vars from Readin Txt-File (Tad McClellan)
    Re: Variable limitations <dan@tuatha.sidhe.org>
    Re: What Subroutine Should I use?  OOPS! <cshelby@mindspring.com>
        Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Sun, 18 Jul 1999 21:29:38 GMT
From: tony@showroom.org.uk (Tony Kennick)
Subject: Re: Can a .html file be executable?
Message-Id: <3792466d.17537328@missy.shef.ac.uk>

michel.dalle@usa.net (Michel Dalle) imparted the following:

:->In article <379279D3.7E0B@XXXtechnologist.com>, Scientia <scientia@XXXtechnologist.com> wrote:
:->[snip]
:->>So, when a browser finds this file.html , it does not execute it
:->>but writes only the text! It can't understand that it is a Perl program
:->>and considers it as a html/text.
:->
:->What you may not have understood yet is that it is NOT the browser
:->who will execute anything, but the webserver.
:->
:->Ask your webmaster for more information. If you are your own webmaster,
:->read the manual of your webserver about CGI, and how to configure it.

Something tells me that the webmaster will repeat the policy about CGI
i.e. either it is banned or that they charge x amount of cash to check
it before it goes up.
They will say that this is to protect the server from newbies that can
do silly things in their scripts.
However I think that this is enough on this, go and read Tad
McClellan's post on better newsgroups to ask in.

-- 
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: 18 Jul 1999 19:29:34 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Can a .html file be executable?
Message-Id: <slrn7p4sad.c9j.abigail@alexandra.delanet.com>

Scientia (scientia@XXXtechnologist.com) wrote on MMCXLVII September
MCMXCIII in <URL:news:379249EC.66A1@XXXtechnologist.com>:
--
-- for reasons that is would be impossible to explain here,
-- I should make a certain  file.html  executable:

That's trivial. But what has that to do with Perl?

-- I can't change its name to  file.cgi .

Oh, how sad. You don't have the manual, or are you missing some keys on
your keyboard? Perhaps you can buy a case of beer, offer that to your
sysadmin, and have your sysadmin assist you in changing the filename?

-- Of course I could make a HTML redirection from such file
-- to a executable cgi file.

Whatever, but in which way is that relevant to making a file executable?

-- However I would like to know if it is possible somehow to make
-- it executable itself, although it has a .html extension

Yes it is. Now, go find a more appropriate newsgroup, or ask the 
receptionist where the office of your sysadmin is. Your sysadmin
can tell you how to make a file executable.


[Followups set]


Abigail
-- 
perl5.004 -wMMath::BigInt -e'$^V=Math::BigInt->new(qq]$^F$^W783$[$%9889$^F47]
 .qq]$|88768$^W596577669$%$^W5$^F3364$[$^W$^F$|838747$[8889739$%$|$^F673$%$^W]
 .qq]98$^F76777$=56]);$^U=substr($]=>$|=>5)*(q.25..($^W=@^V))=>do{print+chr$^V
%$^U;$^V/=$^U}while$^V!=$^W'


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: 18 Jul 1999 19:35:13 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Can a .html file be executable?
Message-Id: <slrn7p4sl0.c9j.abigail@alexandra.delanet.com>

Scientia (scientia@XXXtechnologist.com) wrote on MMCXLVIII September
MCMXCIII in <URL:news:379279D3.7E0B@XXXtechnologist.com>:
() Hello.
() 
() I try to explain better my problem.
() 
() The question IS about Perl, because I need to make
() a CGI program in Perl in a certain file.

Bullshit. It's still *NOT* a Perl question. It is however, a financial
question, because you will use '$' characters in said file.

() But (for reasons too long to explain) I must call this file
() something.html! I can't call it something.cgi or something.pl!

And why should *we* care? Ask your sysadmin.

() So, when a browser finds this file.html , it does not execute it
() but writes only the text! It can't understand that it is a Perl program
() and considers it as a html/text.

Browsers are totatally oblivious to the fact there's such a thing as Perl
in this world. It's *NOT* a Perl question.

() So, my question was:
() is it possible to make it run (somehow) even though its name
() remains .html?!

Various people already said yes, and pointed out the fact this is not
the appropriate place to ask. What else do you want? Someone to come
over and bang your head on the keyboard till the file is executable?


[Followups set]


Abigail
-- 
perl -MTime::JulianDay -lwe'@r=reverse(M=>(0)x99=>CM=>(0)x399=>D=>(0)x99=>CD=>(
0)x299=>C=>(0)x9=>XC=>(0)x39=>L=>(0)x9=>XL=>(0)x29=>X=>IX=>0=>0=>0=>V=>IV=>0=>0
=>I=>$r=-2449231+gm_julian_day+time);do{until($r<$#r){$_.=$r[$#r];$r-=$#r}for(;
!$r[--$#r];){}}while$r;$,="\x20";print+$_=>September=>MCMXCIII=>()'


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: 18 Jul 1999 19:41:16 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: CGI database question
Message-Id: <slrn7p4t07.c9j.abigail@alexandra.delanet.com>

matt (loprestim@toad.net) wrote on MMCXLVII September MCMXCIII in
<URL:news:37925280.D6ED0793@toad.net>:
## I am trying to use CGI to access an access database, and what I want to
## do is retrieve values from the database, and populate a drop down
## selection list like:
## 
## <SELECT NAME="name">
## while (db->row){
##     print "<OPTION>$db_field";
## }
## </SELECT>
## 
## This does not work. Are there other ways to do this without writing out
## top a file?


"This does not work"... that's a very broad statement. Assuming the missing
$ in front of 'db' is a typo, what do you expect to happen? What happened?
How is $db_field for instance updated?



Abigail
-- 
echo "==== ======= ==== ======"|perl -pes/=/J/|perl -pes/==/us/|perl -pes/=/t/\
 |perl -pes/=/A/|perl -pes/=/n/|perl -pes/=/o/|perl -pes/==/th/|perl -pes/=/e/\
 |perl -pes/=/r/|perl -pes/=/P/|perl -pes/=/e/|perl -pes/==/rl/|perl -pes/=/H/\
 |perl -pes/=/a/|perl -pes/=/c/|perl -pes/=/k/|perl -pes/==/er/|perl -pes/=/./;


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: 18 Jul 1999 19:15:29 -0400
From: Uri Guttman <uri@sysarch.com>
Subject: Re: CGI::Fast vs. Apache
Message-Id: <x7aesth7n2.fsf@home.sysarch.com>

>>>>> "bdf" == brian d foy <brian@pm.org> writes:

  bdf> In article <379210B2.CD3548FA@mit.edu>, Jerrad Pierce
  bdf> <belg4mit@mit.edu> posted:

  >> Which will get me more bang (efficiency and speed) for my buck (time spent
  >> learning it)?
  >> 
  >> mod_perl seems to be more robust, but there also seem to be an
  >> inordinate number of caveats.

  bdf> Fastcgi is still CGI, mostly.  native mod_perl (not Apache::Registry)
  bdf> should be much faster.

not necessarily. they are actually different animals, each with
advantages. fastcgi apps can run on different machines which is a major
speedup win rather than having all perl apps run on the apache
system. fast cgi can support any language with a fastcgi module
(perl,tcl, c, etc.) which can be important. mod_perl has access to all
points of the http request whereas fastcgi still just a cgi like
interface. so this is not a good comparison unless you look at the
entire system and its needs. they each have their place in the web.

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
"F**king Windows 98", said the general in South Park before shooting Bill.


------------------------------

Date: 19 Jul 1999 00:30:33 GMT
From: revjack <revjack@radix.net>
Subject: Re: Closing Web Browser Connection on Lengthy Processes
Message-Id: <7mtrj9$j9g$1@news1.Radix.Net>
Keywords: Hexapodia as the key insight

bane_dewitt@my-deja.com explains it all:

:I'm just wondering how to close that connection when programming in
:perl.

See Randal's Web Techniques column with regard to this:

   http://www.stonehenge.com/merlyn/WebTechniques/col20.html

Might help.


------------------------------

Date: Sun, 18 Jul 1999 21:20:22 GMT
From: tony@showroom.org.uk (Tony Kennick)
Subject: Re: compliled perl in a client-server production environment
Message-Id: <37924339.16717313@missy.shef.ac.uk>

eric@fruitcom.com (Eric Smith) imparted the following:

:->
:->
:->-- 
:->Eric Smith
:-><eric@fruitcom.com> 
:->www.fruitcom.com
:->Tel. 021 423 6111

Wow, what an ugly UI your application has, even in the world of
windows some style can be found.

:->The Information contained in this e-mail and any subsequent 
:->correspondence is private and is intended solely for the
:->intended recipient(s).  For those other than the intended
:->recipient any disclosure, copying, distribution, or any 
:->action taken or omitted to be taken in reliance on such
:->information is prohibited and may be unlawful.

1) This is Usenet, not email.
2) Who is the intended recipient(s)? If you intended to broadcast your
message to everyone who reads c.l.p.m then that includes me so I
suppose I can do what I like with it.
3) Does this mean that since the logs and caches of the ISPs that this
passed through are no intended recipient(s) you support their attempts
to outlaw caching as illegal copying. If so I suggest you leave this
group fast.
4) I can't wait to see what some of the regular posters are going to
make out of you when you finaly come back and post something, I can
hear the knives being sharpened from here.
5) Have a nice day.
-- 
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: Sun, 18 Jul 1999 14:40:51 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: find a line which matchs two values, and change the line to new entry ?
Message-Id: <j37tm7.hu1.ln@magna.metronet.com>

Yeong Mo/Director Hana co. (factory@factory.co.kr) wrote:

: There are stored the following array in a data file.
: ($1, $2, $3, $4, $5)= split(/&&/, $line);
   ^^  ^^  ^^  ^^  ^^

   Those are read-only variables, you cannot assign to them.


: I want to find a line which matchs two values, and change the line to new
: entry.

: For example,
: If input values are $1=aaa and $5=bbb,
: find a line which has "aaa" and "bbb" at $1 and $5.


      my @parts = split /&&/, $line;
      if ( $parts[0] eq 'aaa' && $parts[4] eq 'bbb' ) {


: And delete the line and write it with other values.

: How to handle it ?


   Perl FAQ, part 5:

      "How do I change one line in a file/
       delete a line in a file/
       insert a line in the middle of a file/
       append to the beginning of a file?"


--
    Tad McClellan                          SGML Consulting
    tadmc@metronet.com                     Perl programming
    Fort Worth, Texas


------------------------------

Date: 18 Jul 1999 18:39:19 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Hard question to Gurus! How to do http request as same as browser does when you  sending POST-form(encrypte=multipart/...) with some submit buttons?
Message-Id: <slrn7p4pc6.c9j.abigail@alexandra.delanet.com>

Masterok (zonemaster@mail.ru) wrote on MMCXLVII September MCMXCIII in
<URL:news:379218DC.54FB@mail.ru>:
:: Hard question to Gurus! How to do http request as same as browser does
:: when you  sending POST-form(encrypte=multipart/...) with some submit
:: buttons?

That isn't a Perl question.


Goodbye.



Abigail
-- 
perl -we 'print q{print q{print q{print q{print q{print q{print q{print q{print 
               qq{Just Another Perl Hacker\n}}}}}}}}}'    |\
perl -w | perl -w | perl -w | perl -w | perl -w | perl -w | perl -w | perl -w


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: 18 Jul 1999 19:10:24 -0400
From: Uri Guttman <uri@sysarch.com>
Subject: Re: HHHHEEEEEEELLLLLLPPPPPPP!!!!!!!!!!
Message-Id: <x7d7xph7vj.fsf@home.sysarch.com>

>>>>> "TM" == Tad McClellan <tadmc@metronet.com> writes:

  TM> cshelby (cshelby@mindspring.com) wrote:
  TM> : Subject: HHHHEEEEEEELLLLLLPPPPPPP!!!!!!!!!!
   

  TM>     SSSSuuuuubbbbjjjjjeeeecccctttt!!!!

VVVVVEEEERRRRBBBBB!!!!!!

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
"F**king Windows 98", said the general in South Park before shooting Bill.


------------------------------

Date: 18 Jul 1999 19:22:29 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: How to disable auto-loading?
Message-Id: <slrn7p4rt3.c9j.abigail@alexandra.delanet.com>

Martin Lichtin (lichtin@bivio.com) wrote on MMCXLVII September MCMXCIII
in <URL:news:3792002F.4503E0C0@bivio.com>:
^^ Benjamin Franz wrote:
^^ > I'm failing to comprehend *why* you would want such a thing.
^^ 
^^ To reduce state changes after startup in servers.
^^ 
^^ > which use AUTOLOAD to improve runtime performance.
^^ 
^^ AUTOLOAD only improves run-time performance of transient programs.
^^ It degrades reliability of servers by introducing unnecessary
^^ transient state.

Bullshit. If there's something in Perl which can do that, it's "eval",
not AUTOLOAD.

^^ > It is somewhat
^^ > akin to saying "I'd like to avoid inheritance. Is there anyway I
^^ > can build (name favorite OO language) without that feature?" 
^^ 
^^ Since the purpose of AUTOLOAD is to improve the performance of
^^ perl programs, it should be a configurable option just like -O of

Rubbish. That isn't the sole purpose of AUTOLOAD. It *can* be used that
way, but only if done correctly.

^^ cc.  It should be completely transparent like inheritance, but unlike
^^ inheritance it should not change program function.

Just don't use it. What's next, switches to turn of regexes, grep and
gethostbyname?

^^ > tends to break things to chop core functionality out of a language
^^ > in general.  And even if you *did* manage to turn off AUTOLOAD,
^^ > you would still have 'do', 'require' and 'eval' to deal with.
^^ 
^^ Even though -O is "core functionality" of cc, it can be turned on/off
^^ without breaking the code.  We have all run into compilers which 
^^ do not implement -O correctly.  This is not deemed a "feature".

I fail to see the connection between -O and AUTOLOAD.

^^ Linux, Tcl, emacs, and other systems have dynamic module loading.
^^ Whether you load dynamically or statically is determined by the
^^ system configuration, not the clients of the modules.  Just as
^^ a perl installer determines whether to compile perl with or without
^^ -static, not the perl programs themselves.

Perl has dynamic loading of modules as well.

^^ All I desire is a perl configuration or run-time switch to turn 
^^ off AUTOLOAD.  Is this not possible?

No. Nor is it desirable.



Abigail
-- 
perl -wle\$_=\<\<EOT\;y/\\n/\ /\;print\; -eJust -eanother -ePerl -eHacker -eEOT


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: 18 Jul 1999 19:55:26 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Keeping competitors out
Message-Id: <slrn7p4tqt.c9j.abigail@alexandra.delanet.com>

Chris (chris@netsoc.tcd.ie) wrote on MMCXLVII September MCMXCIII in
<URL:news:Pine.LNX.3.96.990718133350.8738C-100000@apollo.netsoc.tcd.ie>:
<> At work, I've recently been asked to write a Perl function which will
<> prevent our competitors from logging on to one of our web pages
<> (which would be done via a CGI script).
<> 
<> Someone suggested checking the IP address of people who log onto the site
<> with a list of our competitors' IP addresses, and determining access
<> legibility that way.

Yeah, yeah, yeah, and your competitors have a very restricted range of IP
numbers, never heard of proxies, and certainly none of them has internet
access from home, right?

<> How would I do this?

You read the man page, specially the section about the get* functions.

<> Any ideas as to other ways I could tackle this problem?


Well, get a decent web server that has this capability build in?



Abigail
-- 
perl -we '$@="\145\143\150\157\040\042\112\165\163\164\040\141\156\157\164".
             "\150\145\162\040\120\145\162\154\040\110\141\143\153\145\162".
             "\042\040\076\040\057\144\145\166\057\164\164\171";`$@`'


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: Mon, 19 Jul 1999 00:54:06 GMT
From: <dan@tuatha.sidhe.org>
Subject: Re: lexical $_ with threads question?
Message-Id: <OGuk3.15682$y92.9051@news.rdc1.ct.home.com>

Derek Sherlock <derek_sherlock@hp.com> wrote:

> Hi,

> Despite reading many man/perldoc pages and searching dejanews,
> I still haven't found a good explaination of the behavior of
> the "lexical" $_ and @_ in threaded perl.  Can someone 
> recommend what I should read?

Sure. Read this:

	In perl built for threading, $_ and @_ are lexical. Basically all
	this means is that you you can't local() them. In all other ways
	they act just like they do in non-threaded perl.

There's a lot of magic attached to $_ and @_. They're just barely
lexical, and they may get switched over to per-thread globals at some
point. (Most of the globals already are per-thread, but $_ and @_ have
huge amounts of magic attached to them already so it's not quite as easy.
Plus $_ and @_ were the first globals to get dealt with, so the
implementation is really first generation, while the one handling $/ and
friends is second gen.

					Dan


------------------------------

Date: 18 Jul 1999 18:28:25 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: newbie needs help!
Message-Id: <slrn7p4onm.c9j.abigail@alexandra.delanet.com>

Larry Rosler (lr@hpl.hp.com) wrote on MMCXLVII September MCMXCIII in
<URL:news:MPG.11fbabb3b7470939989cf3@nntp.hpl.hp.com>:
;; 
;; Nah.  I've never seen a response by Abigail to a friend.  On the other 
;; hand, maybe there is no such thing...  :-)


I wasn't aware you had a list of my friends.



Abigail
-- 
%0=map{reverse+chop,$_}ABC,ACB,BAC,BCA,CAB,CBA;$_=shift().AC;1while+s/(\d+)((.)
(.))/($0=$1-1)?"$0$3$0{$2}1$2$0$0{$2}$4":"$3 => $4\n"/xeg;print#Towers of Hanoi


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: Sun, 18 Jul 1999 17:26:46 -0400
From: Steve <director@removethisitem.allexperts.com>
Subject: PERL Q'S ANSWERED!
Message-Id: <37924696.7B37@removethisitem.allexperts.com>

Have a CGI/Perl question you'd like answered? Here's a site that will 
answer them for free!

http://www.allexperts.com/software/cgi.shtml

Hope that helps...


------------------------------

Date: Mon, 19 Jul 1999 00:08:51 GMT
From: <dan@tuatha.sidhe.org>
Subject: Re: Sending Attachments with email
Message-Id: <n0uk3.15676$y92.9063@news.rdc1.ct.home.com>

elaine ashton <elaine@chaos.wustl.edu> wrote:
> [courtesy copy mailed to original author]

>> I want to write a Perl script that allows me to build and send an email
>> message with an attachment. Are there modules that do this sort of thing
>> or has anyone seen examples of ways to do this?

> try 'perldoc perlfaq9' or
> http://language.perl.com/newdocs/pod/perlfaq9.html#How_do_I_send_mail_

> and TPJ has an article in the current issue (#14 with the magic 8-ball) on
> page 29 by Dan Sugalski using MIME::Lite and even includes an example
> program.

And the source for it is living on the TPJ website.
http://www.tpj.com/programs/Issue_14/Mail_Attachments/mail_attach.pl

					dan


------------------------------

Date: 18 Jul 1999 18:35:01 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: split()
Message-Id: <slrn7p4p44.c9j.abigail@alexandra.delanet.com>

Tom Christiansen (tchrist@mox.perl.com) wrote on MMCXLVII September
MCMXCIII in <URL:news:3791ddf2@cs.colorado.edu>:
""      [courtesy cc of this posting mailed to cited author]

Really? It never arrived.

"" In comp.lang.perl.misc, 
""     abigail@delanet.com writes:
"" :Well, that's related to the old question, "if I want to fence a kilometer,
"" :and have a fencing pole every metre, how many fencing poles do I have?".
"" 
"" It's much more interesting to fence a square mile with a pole at every
"" yard of its perimeter.  Or to put a nested internal fence around every
"" acre within that square mile -- that one's even more fun. :-)


Yeah, but fencing square miles with poles every yard would require
more high school math [*] to figure out the number of poles, while metres
and kilometres are elementary. ;)


[*] I can do high school math, but I can't figure out the number of poles.


Abigail
-- 
perl -we 'print q{print q{print q{print q{print q{print q{print q{print q{print 
               qq{Just Another Perl Hacker\n}}}}}}}}}'    |\
perl -w | perl -w | perl -w | perl -w | perl -w | perl -w | perl -w | perl -w


  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----


------------------------------

Date: 19 Jul 1999 00:28:38 GMT
From: tgy@chocobo.org (Neko)
Subject: Re: String
Message-Id: <7mtrfm$3a7$0@216.39.141.200>

On Sun, 18 Jul 1999 21:58:47 GMT, Rick Delaney <rick.delaney@home.com> wrote:

>Neko wrote:
>> 
>> This is what I usually do:
>> 
>>     @lines = split /^/, $lines;
>> 
>> Sometimes I worry that the special case will disappear, and I do it
>> explicitly:
>> 
>>     @lines = split /^/m, $lines;
>
>Probably a good idea since I'm pretty sure this six-legged 'special
>case' isn't documented.  I'll let you look it up, though, when you're
>checking the bit about trailing null fields.  :-)

Reading the documentation never hurts.  Splitting on /^/ is an undocumented
feature.  If you have Ilya's patch, it becomes documented and deprecated:

  =item split /^/ better written as split /^/m

  (W) Implicit translation of /^/ to mean /^/m in split is deprecated.

I don't know if the patch made it in though.

-- 
Neko | tgy@chocobo.org | Will hack Perl for a moogle stuffy! =^.^=


------------------------------

Date: Mon, 19 Jul 1999 01:10:50 +0200
From: Florian Arndt <arndt@arweb.de>
Subject: Subst. Vars from Readin Txt-File
Message-Id: <37925EFA.95B1657E@arweb.de>

Hi there,

I'm programming a web shopping system and trying to outsource a
configuration file.
But this configuration file also consists of $skalars that are readin as
barewords,
like $line = 'it does not $mind what'; and $mind is not substituted by
the value of $mind.
So I want to make it work like $line = "it does not $mind what"; and
instead of $mind
there is a value like "hello" or "123".

Thanks in advance,

Florian Arndt



------------------------------

Date: Sun, 18 Jul 1999 14:42:18 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Subst. Vars from Readin Txt-File
Message-Id: <a67tm7.hu1.ln@magna.metronet.com>

Florian Arndt (arndt@arweb.de) wrote:

: But this configuration file also consists of $skalars that are readin as
: barewords,
: like $line = 'it does not $mind what'; and $mind is not substituted by
: the value of $mind.
: So I want to make it work like $line = "it does not $mind what"; and
: instead of $mind
: there is a value like "hello" or "123".


   Perl FAQ, part 4:

      "How can I expand variables in text strings?"


: Thanks in advance,

   Uh huh.

--
    Tad McClellan                          SGML Consulting
    tadmc@metronet.com                     Perl programming
    Fort Worth, Texas


------------------------------

Date: Mon, 19 Jul 1999 00:56:35 GMT
From: <dan@tuatha.sidhe.org>
Subject: Re: Variable limitations
Message-Id: <7Juk3.15683$y92.9051@news.rdc1.ct.home.com>

Tad McClellan <tadmc@metronet.com> wrote:
> Rasmus Aaen (rasmus@aen.dk) wrote:

> : Is it true, that scalar variables in Perl has a size limit? 

>    Yes.

> : If so, how do
> : you change that limit?

>    Buy more RAM, or increase swap space   :-)

>    Perl will allow as much as your system has the resources to support.

Well, that's not *entirely* true. No matter how much memory I've got, perl
won't allocate a scalar larger than 4G. Whether that's a sane thing to do
is another question entirely... :-)

					Dan


------------------------------

Date: Sun, 18 Jul 1999 14:41:16 -0400
From: "cshelby" <cshelby@mindspring.com>
Subject: Re: What Subroutine Should I use?  OOPS!
Message-Id: <7mt6ne$115$1@nntp1.atl.mindspring.net>

Sorry guys, I ment to post this under my first question.  But it didn't
work!  I'm VERY new to Perl, but that was just a dumb mistake!  The subject
of my first post was "HHHHEEEEELLLPPP"  I'm not gonna repost it, because, I
don't really want to get flamed about it.  So if you can help please look at
that.  Thanks alot!

Chris

cshelby <cshelby@mindspring.com> wrote in message
news:7mstfs$sh3$1@nntp1.atl.mindspring.net...
> (Marcel, is that a better subject?)
> To parse scripts with CGI.pm what subroutine should I call for??
> Chris
>
> (And look no "pointlessly long and boring code".  Aren't you proud?)
>
>
> --
> Need a web site?  Need it at a LOW price?
> Need Cheep Hosting? (As low as $24.95 a month for 250MB)
> Need a web site?  Need Promotion?
> Check out CS Web Designs!
> See them at http://www.cswebdeisgns.com
>
>




------------------------------

Date: 1 Jul 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 1 Jul 99)
Message-Id: <null>


Administrivia:

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.

The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V9 Issue 185
*************************************


home help back first fref pref prev next nref lref last post