[7697] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 1323 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Nov 16 02:17:21 1997

Date: Sat, 15 Nov 97 23:00:24 -0800
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Sat, 15 Nov 1997     Volume: 8 Number: 1323

Today's topics:
     [Q] CGI, NT4, IIS3, InetInfo process is a hog (john brown)
     Re: [Q] CGI, NT4, IIS3, InetInfo process is a hog (Jeremy D. Zawodny)
     accessing parallel port in perl pdm@3com.com
     Re: Block comments in Perl? <usenet-tag@qz.little-neck.ny.us>
     Connecting to Oracle <kamal.gautam@bremer-inc.com>
     Connecting to Oracle <gautamk@bremer-inc.com>
     downloading a file using perl from lynx <topdog@earthlink.net>
     Re: downloading a file using perl from lynx (Preben Guldberg)
     Help now, urgent!! (Ruogang Zhu)
     Help...Help, install failed, please help!! (Ruogang Zhu)
     Re: Intermediate Message (Joe McDonald)
     Re: Intermediate Message <greg@hassan.com>
     Multi-threading Perl interpreter? <robpang@cs.stanford.edu>
     Re: Newbie Q. How to flush print output mid-script? <joseph@5sigma.com>
     Re: Newbie Q. How to flush print output mid-script? <joseph@5sigma.com>
     Re: Newbie Q. How to flush print output mid-script? <emelamud@usa.net>
     Re: Opinions please (and maybe help) (Tad McClellan)
     Re: Passing a %hash via Shared mem. ?? (Jason Gloudon)
     QUERY_STRING (Steve)
     Re: QUERY_STRING (Tad McClellan)
     Re: QUERY_STRING (Steve)
     Search Engine Script (WuTang1646)
     Re: Statistics for comp.lang.perl.misc (Danny Aldham)
     Re: Testing CGI's? <etta@none.com>
     Re: Testing CGI's? (Avram Grumer)
     Tracking people leaving a website (Peter Schoon)
     two machines dealing with script differently (Steve)
     Re: using or vs || (Jeff Stampes)
     Re: WANTED:simple Perl CGI script <usenet-tag@qz.little-neck.ny.us>
     Re: what's wrong in my simple module? (Jason Gloudon)
     Re: xemacs comint support for perl shell? <gtodd@yorku.ca>
     Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)

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

Date: Sat, 15 Nov 1997 22:05:19 GMT
From: johnbrown@tamu.edu (john brown)
Subject: [Q] CGI, NT4, IIS3, InetInfo process is a hog
Message-Id: <64l6e5$477$1@news.tamu.edu>

Well, we do a lot of perl cgi development on our P133.   Whenever I am testing 
stuff and occasionally forget to end a loop the INETINFO process just goes 
straight up to 95% or so and the ONLY THING TO DO IS REBOOT.

It's a real pain - Does anyone know of a good way to "HUP" the process or 
somehow convince it that I don't really want to continue with the infinite 
loop??? :)

Thanks much for any help!

john brown


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

Date: Sun, 16 Nov 1997 00:47:21 GMT
From: jzawodn@wcnet.org (Jeremy D. Zawodny)
Subject: Re: [Q] CGI, NT4, IIS3, InetInfo process is a hog
Message-Id: <3470426c.429480720@woody.wcnet.org>

[original author automagically cc'd via e-mail]

On Sat, 15 Nov 1997 22:05:19 GMT, johnbrown@tamu.edu (john brown)
wrote:

>Well, we do a lot of perl cgi development on our P133.   Whenever I am testing 
>stuff and occasionally forget to end a loop the INETINFO process just goes 
>straight up to 95% or so and the ONLY THING TO DO IS REBOOT.
>
>It's a real pain - Does anyone know of a good way to "HUP" the process or 
>somehow convince it that I don't really want to continue with the infinite 
>loop??? :)

I've got a kill-and-restart-inetinfo.cmd file that I use. Something
like this:

 @echo off
 kill inetinfo
 net start w3svc

Jeremy
-- 
Jeremy D. Zawodny                 jzawodn@wcnet.org
Web Server Administrator          www@wcnet.org
Wood County Free Net (Ohio)       http://www.wcnet.org/


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

Date: 15 Nov 1997 06:10:14 GMT
From: pdm@3com.com
Subject: accessing parallel port in perl
Message-Id: <64jec6$ti$1@news.nsd.3com.com>


Howdy,

How do you access the parallel port on a unix machine (Solaris in this
case) from perl?  People have told me to treat it like a normal 
file and open() it, but I'm not sure how that would work to access
data on specific pins of the parallel port.

I am trying to read/send data on a Dallas Semiconductor DS1620 Digital
Thermometer.  Basically this circuit hooks up to the parallel port
and allows you to read the temperature from the device.  It hooks
up to pins 4.5,17 and 18 on the paralel port, 4 and 5 being data. 
I have the specs for the data I should get from the parallel port, but
I can't get to the point of getting data yet!

Any pointers on how to access data from the parallel port would be
greatly appreciated.

Thank you,

-- 
Phillip Moore      * 3com Corporation
pdm@3com.com       * Systems and Network Administration
408.326.1944       * Networks that go the distance.


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

Date: 15 Nov 1997 19:42:21 GMT
From: Eli the Bearded <usenet-tag@qz.little-neck.ny.us>
Subject: Re: Block comments in Perl?
Message-Id: <eli$9711151424@qz.little-neck.ny.us>

brian d foy <comdog@computerdog.com> wrote:
> Eli the Bearded <usenet-tag@qz.little-neck.ny.us> wrote:
> >        It will bugger your $1, etc variables, but it won't clobber
> >        saved RE used for the m// blank RE context.

Note I make a distinction between buggering abd clobbering.

> appears to have no effect on $1 and friends:

>From perlre:

       The scope of $<digit> (and $`, $&, and $') extends to the end
       of the enclosing BLOCK or eval string, or to the next
       successful pattern match, whichever comes first.

$ perl5.00401 -we '	$a="NY.PM";
			$a=~/(\w*)(\W*)(\w*)/;
			print "$1 $2 $3 --";
			1=~/(?#beat the dead horse)/;
			print "$1 $2 $3\n"
		  '
Use of uninitialized value at -e line 5.
Use of uninitialized value at -e line 5.
Use of uninitialized value at -e line 5.
NY . PM --  

You may have it work sometimes, but you should not rely upon it.

Elijah
------
belives different perl versions give differ on this: can you stump the guru?


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

Date: Sat, 15 Nov 1997 18:40:06 -0500
From: Kamal Gautam <kamal.gautam@bremer-inc.com>
Subject: Connecting to Oracle
Message-Id: <346E32D6.32FA@bremer-inc.com>

I'm brand new to Perl, and I'm trying to connect to an Oracle database. 
I've installed Gurusamy Sarathy's win32 binary port on  my machine,
along with the DBI dll, but I can't seem to get beyond that.  I can't
find the Oracle DBM for Win32 (the link from Hermetica seems to be
broken).  Anyone know where I can find this?  And anyone have step by
step instructions on how to proceed from there?

Thanks in advance,

Kamal Gautam


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

Date: 15 Nov 1997 23:41:24 GMT
From: "Kamal Gautam" <gautamk@bremer-inc.com>
Subject: Connecting to Oracle
Message-Id: <01bcf220$aa8a5900$5f21f9cc@falcon.bremer-inc.com>

I'm brand new to Perl, and I'm trying to connect to an Oracle database. 
I've installed Gurusamy Sarathy's win32 binary port on  my machine, along
with the DBI dll, but I can't seem to get beyond that.  I can't find the
Oracle DBM for Win32 (the link from Hermetica seems to be broken).  Anyone
know where I can find this?  And anyone have step by step instructions on
how to proceed from there?

Thanks in advance,

Kamal Gautam


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

Date: Sat, 15 Nov 1997 11:54:40 -0800
From: SoniK <topdog@earthlink.net>
Subject: downloading a file using perl from lynx
Message-Id: <346DFDFF.B0C@earthlink.net>

for my website, i need to download many files, mostly over 1MB in size. 
i'm on a slow modem and so use my shell's speed to download most of
them, which means opening lynx and copying the url over and waiting for
it to download then save.. this is ok but not very efficient.  what i
would like to do is either have a little form on a page where i can put
the url and send and the server will download or have a little line in
the .cgi that users already send that would hopefully be as simple as  '
download http://blah.com/blah.exe ' so that the file will be all ready
when i need it.

i suppose if i do ' lynx http://etc.. ' from the .cgi it will load up
lynx, but i dont think it would download, because usually i need to type
'd' to start downloading and then it probably would save it.

anyhelp would be nice! -- please CC to my email

-- 
email: sonik@mircscripts.com
www: http://www.mircscripts.com/
irc: SoniK on DALnet


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

Date: 15 Nov 1997 22:29:08 GMT
From: c928400@hald.gbar.dtu.dk (Preben Guldberg)
Subject: Re: downloading a file using perl from lynx
Message-Id: <slrn66s8go.obk.c928400@hald.gbar.dtu.dk>

Thus wrote topdog@earthlink.net (SoniK):
> [...] which means opening lynx and copying the url over and waiting for
> it to download then save.. this is ok but not very efficient.  [...]

> i suppose if i do ' lynx http://etc.. ' from the .cgi it will load up
> lynx, but i dont think it would download, because usually i need to type
> 'd' to start downloading and then it probably would save it.
[--- snip ---]

I don't know if the following will work for other than text files, but I think
what you want is something like 'lynx -source ...'  this usually drops the
HTML source for a given page. I think it might work for any file out there.

I frequently use 'lynx -dump ...' and 'lynx source ...' for standard jobs. The
former gives the interpreted page (as it looks when viewed) whereas the latter
is the source.

Hope it helps

Peppe
-- 
Life may have no meaning. Or even               www.student.dtu.dk/~c928400
worse, it may have a meaning of which   __/-\__    c928400@student.dtu.dk
I disapprove.  --Ashleigh Brilliant      (o o)         Preben Guldberg
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~oOOo~(_)~oOOo~~~~~~~~~~~~~~~~~~~~~~~~~


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

Date: 16 Nov 1997 00:51:13 GMT
From: rgzhu@cb.att.com (Ruogang Zhu)
Subject: Help now, urgent!!
Message-Id: <64lg21$gqj@nntpb.cb.lucent.com>


Hi, experts,

I have problem while I tried to install perl 5.004 in sun solaris 2.3.

It failed with following message:
 ...
 ...
 ...
Finding dependencies for util.o.
 ./makedepend: shlist: not found
Searching for .SH files...
Updating makefile...
test -s perlmain.c && touch perlmain.c
*** Error code 1 (ignored)
cd x2p;  depend
sh: depend: not found
*** Error code 1
make: Fatal error: Command failed for target `depend'

please help me!!

thanks in advance

Roger




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

Date: 15 Nov 1997 23:39:24 GMT
From: rgzhu@cb.att.com (Ruogang Zhu)
Subject: Help...Help, install failed, please help!!
Message-Id: <64lbrc$gpi@nntpb.cb.lucent.com>


Hi, experts,

I have problem while I tried to install perl 5.004 in sun solaris 2.3.

It failed with following message:
 ...
 ...
 ...
Finding dependencies for util.o.
 ./makedepend: shlist: not found
Searching for .SH files...
Updating makefile...
test -s perlmain.c && touch perlmain.c
*** Error code 1 (ignored)
cd x2p;  depend
sh: depend: not found
*** Error code 1
make: Fatal error: Command failed for target `depend'

please help me!!

thanks in advance

Roger




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

Date: Sat, 15 Nov 1997 16:16:24 -0800
From: joe@vpop.net (Joe McDonald)
Subject: Re: Intermediate Message
Message-Id: <34803921.1019187954@news.smartlink.net>


Do something like this:

$email = "joe\@vpop.net";
$loc =  "http://rs.internic.net/cgi-bin/whois?$email";


print <<"EOF";
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=$loc">

<BODY BGcolor=white text=black>
<TABLE width=100% height=100%>
<TD align=center valign=center>
<H1>Please Wait</H1>
<h1>Retrieving Data from <font
color=red>InterNIC</font><blink>...</blink></H1>
</TD>
</TABLE>


To see this in action, check out my jumblia at: 
http://web.NewsHub.com/lookaddr/

It's still a work in progress, and may break while I'm working on it, but I
think it performs the sort of action you're looking for.

regards,
-joe

	
On Fri, 14 Nov 1997 20:46:04 -0500, Jim Blackwell
<jim.blackwell@gsfc.nasa.gov> wrote:

>Hi all,
>
> a way to display an intermediate message that would come up on the
>screen once a CGI FORM has been submitted and before its results come
>back.
>
>Something like
>
>"One Moment Please"
>
>Thanks,
>
>Jim Blackwell

=============================================================================
           * NewsHub: Updated every 15 minutes/24 hours a day! *
                        http://web.NewsHub.com/


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

Date: Sat, 15 Nov 1997 04:25:35 -0500
From: Greg Hassan <greg@hassan.com>
To: Jim Blackwell <jim.blackwell@gsfc.nasa.gov>
Subject: Re: Intermediate Message
Message-Id: <346D6A8F.AD1@hassan.com>

Jim Blackwell wrote:
> 
> Hi all,
> 
>  a way to display an intermediate message that would come up on the
> screen once a CGI FORM has been submitted and before its results come
> back.
> 
> Something like
> 
> "One Moment Please"
> 

Just print it out before you start processing, be sure to have 
$|=1; before it in your code so it comes out right away.

-Greg
-- 
===============================================================
  Greg Hassan, The Independent Solution (CGI,Java,SQL,Perl...)
           http://www.hassan.com/, 1-607-225-4214
===============================================================
  Online Editable Database: http://www.hassan.com/super_dbedit/
Form's Submissions Tracker: http://www.hassan.com/form/
     Sell Stuff on the Web: http://www.hassan.com/shopcart/
===============================================================



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

Date: Sat, 15 Nov 1997 18:12:32 -0800
From: "Robert Pang" <robpang@cs.stanford.edu>
Subject: Multi-threading Perl interpreter?
Message-Id: <64loh6$s0k@masters0.InterNex.Net>

Hi everyone,

I am trying to embed a Perl interpreter (5.004_01) in a software.  I want to
run multiple Perl scripts in multiple threads.  I wonder if anyone knows how
well the existing Perl interpreter supports multiple interpreter instances
in a process.  I want to do it because I want to ensure total isolation of
name space and state of Perl library packages.

I tried instantiating multiple Perl interpreters in a process and I got a
crash when it tries to clean up.  I heard that Perl interpreter
implementation is still not thread-safe yet.  However, I heard some people
claiming success in doing so.  Any suggestion?

Thanks.

Robert Pang




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

Date: Sat, 15 Nov 1997 17:48:37 -0700
From: "Joseph N. Hall" <joseph@5sigma.com>
Subject: Re: Newbie Q. How to flush print output mid-script?
Message-Id: <346E4298.B72E0A1@5sigma.com>

John wrote:

> Question. Why does the script not return its html output to the browser
> until 300 seconds are up? 

That would be because the script is sending its output to the server,
not the browser, and somewhere in the process the output is being
held in a buffer.  Maybe unbuffering standard out will do it for
you, maybe not.

For better results, use a non parsed header script.

By the way, this isn't a Perl question.

	-joseph


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

Date: Sat, 15 Nov 1997 17:50:48 -0700
From: "Joseph N. Hall" <joseph@5sigma.com>
Subject: Re: Newbie Q. How to flush print output mid-script?
Message-Id: <346E431B.5DDD4FD5@5sigma.com>

Mike Stok wrote:
 [...] So you might want to look in your berb
> server manual for instructions on how to have the server not buffer the
> output (a couple of things to look for are nph- and non parsed headers.)

"non parser header" doesn't mean unbuffered by the server; in fact the
script communicates directly (bidirectionally, potentially) with the 
browser.

	-joseph


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

Date: Sun, 16 Nov 1997 00:52:47 -0500
From: Eugene <emelamud@usa.net>
To: John <webmaster@visionary-western.co.uk>
Subject: Re: Newbie Q. How to flush print output mid-script?
Message-Id: <346E8A2F.41C6@usa.net>

John wrote:
> 
> Hi All!
> 
> I have a dumb question. I have a script which replies to a simple web
> site form submission. The chunk I'm having problems with is near the end
> of the script and runs something like...
> 
>         print "...some html...\n";
>         sleep (300);
>         exit;
> 
> Question. Why does the script not return its html output to the browser
> until 300 seconds are up? Presumably there's a command which could flush
> the output before it starts to sleep? I've drawn a blank with the
> manual, any help would be appreciated (grin).
> 
> Thanks in advance.
> 
> John L

Hi John!

Server executes script and waits for script to finish 
before sending output to your browser..
This script will not finish until after 300 sec. Right?!

welcome:)


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

Date: Sat, 15 Nov 1997 17:45:02 -0600
From: tadmc@flash.net (Tad McClellan)
Subject: Re: Opinions please (and maybe help)
Message-Id: <u5cl46.0c7.ln@localhost>


Nathan|Fain (mindmore@mindless.com) wrote:
                      ^^^^^^^^
                      ^^^^^^^^
: This is a multi-part message in MIME format.
                                  ^^^^^^^^^^^
                                  ^^^^^^^^^^^


appropriate...


--
    Tad McClellan                          SGML Consulting
    tadmc@flash.net                        Perl programming
    Fort Worth, Texas


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

Date: 15 Nov 1997 19:43:02 GMT
From: jgloudon@bbn.remove.com (Jason Gloudon)
Subject: Re: Passing a %hash via Shared mem. ??
Message-Id: <64ku06$ceg$1@daily.bbnplanet.com>

Zenin (zenin@best.com) wrote:
: Jason Gloudon <jgloudon@bbn.remove.com> wrote:
: : If it's a simple hash containing text and not references, and you don't
: : mind using a file you can do this using a tie'd array. man perltie for 
: : specifics.

: 	The question was asking how to share the hash table between two
: 	processes, not how to map it to a file. -Besides, a DBM file would
: 	have been the correct answer in that case, and not a tied array.

Typo. Thanks for the correction.

Jason Gloudon


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

Date: Sat, 15 Nov 1997 19:55:53 GMT
From: syarbrou@ais.net (Steve)
Subject: QUERY_STRING
Message-Id: <346ffe2e.18255588@news.ais.net>

Do all browsers properly return the QUERY_STRING variable?  Do some
browsers only allow for strings up to certain lengths?  If so, which
browsers are the problem ones, and how can you code a program to
detect that?  Thanks.

Steve


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

Date: Sat, 15 Nov 1997 17:47:08 -0600
From: tadmc@flash.net (Tad McClellan)
Subject: Re: QUERY_STRING
Message-Id: <s9cl46.0c7.ln@localhost>

Steve (syarbrou@ais.net) wrote:
: Do all browsers properly return the QUERY_STRING variable?  Do some
: browsers only allow for strings up to certain lengths?  If so, which
: browsers are the problem ones, and how can you code a program to
: detect that?  Thanks.


This is the perl newsgroup.

If you have a perl question, ask it here.

Do you have a *perl* question?


--
    Tad McClellan                          SGML Consulting
    tadmc@flash.net                        Perl programming
    Fort Worth, Texas


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

Date: Sun, 16 Nov 1997 01:35:58 GMT
From: syarbrou@ais.net (Steve)
Subject: Re: QUERY_STRING
Message-Id: <346e4dd0.13485921@news.ais.net>

On Sat, 15 Nov 1997 17:47:08 -0600, tadmc@flash.net (Tad McClellan)
wrote:

>Steve (syarbrou@ais.net) wrote:
>: Do all browsers properly return the QUERY_STRING variable?  Do some
>: browsers only allow for strings up to certain lengths?  If so, which
>: browsers are the problem ones, and how can you code a program to
>: detect that?  Thanks.
>
>
>This is the perl newsgroup.
>
>If you have a perl question, ask it here.
>
>Do you have a *perl* question?

Must have a lot of free time on your hands to be watch dogging this
forum huh?


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

Date: 16 Nov 1997 02:59:07 GMT
From: wutang1646@aol.com (WuTang1646)
Subject: Search Engine Script
Message-Id: <19971116025900.VAA14172@ladder01.news.aol.com>

Hello. I have a search engine script written in perl and would like to add a
 few features to it. They are listed below.

I want to just make it so that the user can go to the previous 10 results and
 at the top it shows the keyword(s) that they searched for. I would also maybe
 like to add relevence percentages next to the links.

If you know how or can help me, E-Mail me and I will send you the script.

Thanks.
aldogg@alabanza.com


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

Date: 15 Nov 1997 14:16:14 -0800
From: danny@lennon.postino.com (Danny Aldham)
Subject: Re: Statistics for comp.lang.perl.misc
Message-Id: <64l6ve$bgc$1@lennon.postino.com>

Tad McClellan (tadmc@flash.net) wrote:

: Would it be possible to get the Top 10 Posters of FAQs?
: I swear, close to 50% of the posts are such a beast. Couldn't

No, I think RTFM posts far out-number FAQ posts. Every FAQ post
seems to elicit 3 or 4 RTFM posts. 

And to Elijah, it was just a question. Hope that bug gets out of
your ass soon.

--
Danny Aldham           SCO Ace , MCSE , JAPH , DAD
I wak'd, she fled, and day brought back my night. jm


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

Date: 15 Nov 1997 22:37:27 GMT
From: "etta" <etta@none.com>
Subject: Re: Testing CGI's?
Message-Id: <64l877$lae@mtinsc03.worldnet.att.net>

Get a webserver and put it on your computer!

etta

Cavykid <cavykid@aol.com> wrote in article
<19971115032300.WAA24858@ladder02.news.aol.com>...
> Does anyone here know a good place to test CGI's?  I have a CGI I made in
>  MacPerl 5, and I cant figure out where to test it.  EMail me please! 
Thanks!
> 


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

Date: Sat, 15 Nov 1997 20:37:54 -0500
From: avram@interport.net (Avram Grumer)
Subject: Re: Testing CGI's?
Message-Id: <avram-1511972037550001@avram.port.net>

In article <19971115032300.WAA24858@ladder02.news.aol.com>,
cavykid@aol.com (Cavykid) wrote:

>Does anyone here know a good place to test CGI's?  I have a CGI I made in
> MacPerl 5, and I cant figure out where to test it.  EMail me please!  Thanks!

Consider installing a web server on your machine.  I've been testing my
MacPerl CGIs with Quid Pro Quo, a good freeware webserver.  You can
download it from Social Engineering's website
<http://www.socialeng.com/>.  (They also offer a commercial version, Quid
Pro Quo Plus, but the freeware version will work just fine for what you
want.)  It's about a 2 Meg download.

--
Avram Grumer       avram@interport.net  
http://www.users.interport.net/~avram/
Do not meddle in the affairs of Wizards, 
for they are kludgy and can reformat your hard drive.


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

Date: Sun, 16 Nov 1997 00:27:23 GMT
From: alex1@#nospam#.usa.net (Peter Schoon)
Subject: Tracking people leaving a website
Message-Id: <346e3d52.525031460@news.indigo.ie>

Does anybody know of the existence of a perl script that tracks users
leaving a webpage and where they are going ie.
http://www.whatever.com/redirect?url=www.yahoo.com
Call me lazy and I know it's a small programming job but I just don't
want to go and do it and then find out somebody else has done it and
is just giving it away.
Thanks PPL.
Peter


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

Date: Sat, 15 Nov 1997 20:19:44 GMT
From: syarbrou@ais.net (Steve)
Subject: two machines dealing with script differently
Message-Id: <347202d7.19449351@news.ais.net>

Ok, here's the scenario:

Two Sun Sparc 10's.  Both identical in configuration.  I have a script
that reads in data from a log file, then compares the new data to the
log.  The log is reopened and each line from the original log is
compared to the new line of data.  If the line matches, it prints to
the log and adds 1 to the number of times that line was found.  If the
line is not found, it just rewrites that line of the log back to the
log.  Problem is, it increments correctly on one log, but not on the
other.  I can start out with a list of data in a log on both machines,
say:

hi|100
by|90
joe|50
sam|20

Then after it ran for a while, the one machine will have increased the
numbers, the other one will actually have numbers lower than the
orginal log.  Any ideas?

Steve


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

Date: 15 Nov 1997 20:21:58 GMT
From: stampes@xilinx.com (Jeff Stampes)
Subject: Re: using or vs ||
Message-Id: <64l096$e04$1@neocad.com>

Stuart Hughes (sehughes@mistral.co.uk) wrote:
: sub pchk
: {
:    my $var = shift || "default";  # fails if you use 'or' instead of
: '||'
:    print "var is $var\n";
: }

See the perlop manpage for alitle of operator precedence.  || has a
higher precedence than = but or is lower than it.   

--
Jeff Stampes -- Xilinx, Inc. -- Boulder, CO -- jeff.stampes@xilinx.com


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

Date: 16 Nov 1997 03:15:44 GMT
From: Eli the Bearded <usenet-tag@qz.little-neck.ny.us>
Subject: Re: WANTED:simple Perl CGI script
Message-Id: <eli$9711152206@qz.little-neck.ny.us>

brian d foy <comdog@computerdog.com> wrote:
> internetworks1@juno(nospam).com wrote:
> >I'm looking for a simple Perl CGI script that will display on a web
> >page who is logged on to a site at any given time.  I don't want a
 ...
>    my $data = `/bin/who`;
> 
>    print "No one is on\n" unless $data;

In my experience who does that for you. Now I admit most people have
never devised ways to check this or used the ways availible (rsh comes
to mind) so caution is reasonable.

> fondly remembers finger

Lots of sites have disabled that. Eg:

:r! lynx -dump gopher://panix.com:79/@
Panix does not reply to non-specific fingers.

Please specify a specific user to finger: user@panix.com

For more information about Panix, email (or finger) info@panix.com

If they haven't, a redirect to that gopher protocol hack might be
better than `who` in a CGI.

Elijah
------
Altavista just gave me a count of 7 for "$RTFM_post{'brian d foy'}++;"


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

Date: 15 Nov 1997 20:51:50 GMT
From: jgloudon@bbn.remove.com (Jason Gloudon)
Subject: Re: what's wrong in my simple module?
Message-Id: <64l216$ceg$2@daily.bbnplanet.com>

Trudno zhit' v derevne bez nagana. (alex@kawo2.rwth-aachen.de) wrote:
: Please,

: i have read man and tried also the template from perlfaq7, but 
: still can't get my module to work (only the last function works):

: Here's file EED.pm:
: ###################

: package EED;
: require Exporter;
: @ISA = Exporter;
: @EXPORT = qw (eed_header, eed_abstract, eed_footer);
                          ^             ^
 qw looks for whitespace as the separator. Remove the commas.

Jason Gloudon


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

Date: 15 Nov 1997 16:37:24 -0500
From: Graham Todd <gtodd@yorku.ca>
To: lnewton@berio.phx.mcd.mot.com (Lynn D. Newton)
Subject: Re: xemacs comint support for perl shell?
Message-Id: <x6d8k1kfe3.fsf@ellerbeck.com>

lnewton@berio.phx.mcd.mot.com (Lynn D. Newton) writes:

> Has anyone written any Emacs lisp code (preferably for
> XEmacs), perhaps using the comint command interpreter
> wrapper, to run Perl with a -d switch like a shell
> interpreter?
> 
> Yes, I'm sure I could just start a shell and run perl
> -d. I was looking to some prebaked code with a little
> polish to it.

You probably want "cperl-mode.el" - theres a "perl-mode" too but cperl
seems nicer.

-- 
Graham Todd        



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

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


Administrivia:

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

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

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

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

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

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

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

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


------------------------------
End of Perl-Users Digest V8 Issue 1323
**************************************

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