[11987] in Perl-Users-Digest
Perl-Users Digest, Issue: 5587 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu May 6 18:07:10 1999
Date: Thu, 6 May 99 15:01:34 -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 May 1999 Volume: 8 Number: 5587
Today's topics:
Re: Modulo <droby@copyright.com>
Re: Newbie question <gellyfish@gellyfish.com>
Re: OReilly bullshit.... Camel logo trademark <gellyfish@gellyfish.com>
Perl code to access a cookie? <mr_steve@my-dejanews.com>
Re: Perl code to access a cookie? (Steve Linberg)
Re: perl debugger on NT latsharj@my-dejanews.com
PERLFUNC: abs - absolute value function <perlfaq-suggestions@perl.com>
PERLFUNC: accept - accept an incoming socket connect <perlfaq-suggestions@perl.com>
PERLFUNC: bind - binds an address to a socket <perlfaq-suggestions@perl.com>
POSIX to Windows <jdenis@wn.net>
Q: checking wheather the user exists <morozov@ava.obu.edu>
Re: Q: checking wheather the user exists <uri@sysarch.com>
Re: Q: checking wheather the user exists (John Stanley)
Re: RegExp Help Please <ludlow@us.ibm.com>
Re: Scripting language with LFN support? yong321@yahoo.com
Re: split, pop, and cut <gellyfish@gellyfish.com>
Re: Square brackets in variable for regex <gellyfish@gellyfish.com>
Re: Stumped on Regex routine <gellyfish@gellyfish.com>
Stupid FAQ question of the (day? month? year?) (John G Dobnick)
Re: Stupid FAQ question of the (day? month? year?) <design@raincloud-studios.com>
system call returning 9 ha@canes.gsw.peachnet.edu
Re: system call returning 9 <cassell@mail.cor.epa.gov>
Re: testing expressions in the IF statement ( )
Re: unos problemitas pricerbumanto@my-dejanews.com
Which HTTP module for extracting tags? <design@raincloud-studios.com>
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 06 May 1999 21:08:44 GMT
From: Don Roby <droby@copyright.com>
Subject: Re: Modulo
Message-Id: <7gt0cp$kl8$1@nnrp1.deja.com>
In article <3731C773.A05F9636@mail.cor.epa.gov>,
David Cassell <cassell@mail.cor.epa.gov> wrote:
> Robert E Webb wrote:
> >
> > Mathematicians out there I have a question. I am currently in a debate over
> > the correct answer to the following: -6 % 7. Perl, and MS Excel give the
> > answer of 1. PHP gives the answer of -6. I emailed the developer, and he is
> > saying that -6 is correct...
>
> Well, he's wrong.
>
Well, I prefer the answer 1 too, but he's not exactly wrong. He's following
C usage after all, though as Larry noted, it may be implementation-dependent
in C.
And he's not mathematically wrong.
Beware, math pedantry lies ahead. ;-)
Both answers are mathematically correct, because they're mathematically
equivalent. In the field of integers mod 7, 1 and 6 represent equivalence
classes (or cosets if you like) which are additive inverses. So -6 and 1 are
the same in this context.
If we were to write a module IntegerMod7.pm (not that I think it would be
useful), it would make sense to always display the numbers 0..6 as standard
representations of the cosets, and to overload the unary - and the binary
operators +, *, **, / and even == so that they did The Right Thing, and then
indeed -6 == 1 would evaluate as true.
Actually, I'm tempted to do that just for fun, and then maybe start on the
p-adic numbers...
>
> A few other points:
> [1] This post is actually irrelevant to c.l.p.misc, and should
> have gone to one of the sci.math groups instead.
His post noted the behavior of Perl's % operator being different than C's %
operator. Doesn't sound terribly off-topic to me. Of course my response has
now probably taken it there... ;-)
> [2] Don't let TomC or Uri find out that some BillWare gives the
> same answer as Perl, where PHP doesn't. :-)
>
It's ok on the rare occasions that BillWare gets it right.
--
Don Roby
JAMH
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: 6 May 1999 21:45:52 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Newbie question
Message-Id: <7gt2ig$4no$1@gellyfish.btinternet.com>
On 05 May 1999 23:11:46 -0400 Uri Guttman wrote:
>>>>>> "TM" == Tad McClellan <tadmc@metronet.com> writes:
>
> TM> Don't take the advice of professional programmers with years
> TM> of Perl experience.
>
> TM> Instead, take the advice of someone who has just learned
> TM> some Perl.
>
> TM> That's the ticket.
>
> another vote for comp.lang.perl.newbie!
>
> let them help each other and leave us be.
>
Or send them to the 'Pit of Malbowges' that is alt.perl ...
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: 6 May 1999 20:05:35 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: OReilly bullshit.... Camel logo trademark
Message-Id: <7gssmf$4lr$1@gellyfish.btinternet.com>
On 05 May 1999 23:46:14 -0700 Russ Allbery wrote:
> Matt Kruse <mkruse@rens.com> writes:
>
>> I realize companies need to make efforts to stop unauthorized trademark
>> useage, but IMO, they are taking it too far in finding any and every
>> perl site that may have some representation of a camel.
>
>> What O'Reilly should do is allow the camel to become a public symbol for
>> Perl, but maintain the trademark for books about Perl. Seems logical to
>> me.
>
> Unfortunately, they can't do that. They're screwed over by the way US
> trademark law works. If they don't do what they're doing to you, they
> run the risk of losing the trademark completely. Because you're talking
> about the language Perl, your use of the trademark is within the same
> domain as theirs, so they have to defend it or have it diluted.
>
Not just the US law either - we have a friend who has a daughter called
Harriet: she decided to open a gift shop named after her daughter and
because the name sounds like that of a well known store in Knightsbridge
she decided to use a similar sign writing style to that of Mr Fayeds
Emporium - not gold and green mind just similar in style. She got a
letter from the chambers of some well know law firm saying they were
going to sue if she didnt change the sign. She chose to close the shop.
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: Thu, 6 May 1999 17:36:22 -0400
From: "Steve" <mr_steve@my-dejanews.com>
Subject: Perl code to access a cookie?
Message-Id: <WXnY2.3992$fO5.165899@news14.ispnews.com>
I need some Perl code that does the following:
Looks to see if cookie xxxx exists
If it doesn't, it redirects to url http://www.mydomain.com
If the cookie does exist, the rest of the Perl code executes
Is this possible? Can someone help me with the code?
Thanks in advance!!
-Steve
------------------------------
Date: Thu, 06 May 1999 17:39:27 -0400
From: linberg@literacy.upenn.edu (Steve Linberg)
Subject: Re: Perl code to access a cookie?
Message-Id: <linberg-0605991739270001@ltl1.literacy.upenn.edu>
In article <WXnY2.3992$fO5.165899@news14.ispnews.com>, "Steve"
<mr_steve@my-dejanews.com> wrote:
> I need some Perl code that does the following:
>
> Looks to see if cookie xxxx exists
> If it doesn't, it redirects to url http://www.mydomain.com
> If the cookie does exist, the rest of the Perl code executes
>
> Is this possible?
Yes. CGI.pm will do all of that.
> Can someone help me with the code?
Undoubtedly, but perhaps you should make clear whether you're looking for
consultants or volunteers.
--
Steve Linberg, Systems Programmer &c.
National Center on Adult Literacy, University of Pennsylvania
email: <linberg@literacy.upenn.edu>
WWW: <http://www.literacyonline.org>
------------------------------
Date: Thu, 06 May 1999 20:43:02 GMT
From: latsharj@my-dejanews.com
Subject: Re: perl debugger on NT
Message-Id: <7gsusl$jdg$1@nnrp1.deja.com>
In article <3731CBBF.AD74B361@email.sps.mot.com>,
Denise Pool-Kalvelage <rmbw40@email.sps.mot.com> wrote:
> Is there a version of perl and a debugger that runs on NT or
> windows?
Go to www.activestate.com
--
Regards,
Dick
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: 6 May 1999 10:13:54 -0700
From: Tom Christiansen <perlfaq-suggestions@perl.com>
Subject: PERLFUNC: abs - absolute value function
Message-Id: <3731bfc2x@cs.colorado.edu>
(This excerpt is from the perlfunc manpage, part of the standard set of
documentation included with every valid Perl distribution--like the one on
your own system. See also http://language.perl.com/newdocs/pod/perlfunc/
if your negligent system adminstrator has been remiss in his duties.)
NAME
abs - absolute value function
SYNOPSIS
abs VALUE
abs
DESCRIPTION
Returns the absolute value of its argument. If VALUE is omitted,
uses `$_'.
--
+Our knowledge can only be finite, while our ignorance must necessarily be
infinite.; (Karl Popper)
------------------------------
Date: 6 May 1999 10:14:23 -0700
From: Tom Christiansen <perlfaq-suggestions@perl.com>
Subject: PERLFUNC: accept - accept an incoming socket connect
Message-Id: <3731bfdfx@cs.colorado.edu>
(This excerpt is from the perlfunc manpage, part of the standard set of
documentation included with every valid Perl distribution--like the one on
your own system. See also http://language.perl.com/newdocs/pod/perlfunc/
if your negligent system adminstrator has been remiss in his duties.)
NAME
accept - accept an incoming socket connect
SYNOPSIS
accept NEWSOCKET,GENERICSOCKET
DESCRIPTION
Accepts an incoming socket connect, just as the accept(2) system
call does. Returns the packed address if it succeeded, FALSE
otherwise. See the example in the section on "Sockets:
Client/Server Communication" in the perlipc manpage.
--
Every program has at least one bug and can be shortened by at least one
instruction --from which, by induction, one can deduce that every
program can be reduced to one instruction which doesn't work.
------------------------------
Date: 6 May 1999 14:20:15 -0700
From: Tom Christiansen <perlfaq-suggestions@perl.com>
Subject: PERLFUNC: bind - binds an address to a socket
Message-Id: <3731f97f@cs.colorado.edu>
(This excerpt is from the perlfunc manpage, part of the standard set of
documentation included with every valid Perl distribution--like the one on
your own system. See also http://language.perl.com/newdocs/pod/perlfunc/
if your negligent system adminstrator has been remiss in his duties.)
NAME
bind - binds an address to a socket
SYNOPSIS
bind SOCKET,NAME
DESCRIPTION
Binds a network address to a socket, just as the bind system call
does. Returns TRUE if it succeeded, FALSE otherwise. NAME should be
a packed address of the appropriate type for the socket. See the
examples in the section on "Sockets: Client/Server Communication"
in the perlipc manpage.
--
A power tool is not a toy. Unix is a power tool.
------------------------------
Date: Thu, 6 May 1999 16:14:29 -0400
From: "Jay Denis" <jdenis@wn.net>
Subject: POSIX to Windows
Message-Id: <7gsta9$oea$1@newsie2.cent.net>
I am trying to wirte a guestbook script the uses CGI.pm. But I am having
trouble with POSIX on Windows. Is there something else I can use in palce
of this?
------------------------------
Date: Thu, 06 May 1999 14:39:38 -0500
From: "Alexey A. Morozov" <morozov@ava.obu.edu>
Subject: Q: checking wheather the user exists
Message-Id: <3731EFFA.CC886BC6@ava.obu.edu>
Hello, all.
Does anyone know of a way to check if a given username actually
corresponds to a real user on a system without going through the passwd
file (I'm on a Linux platform). I was thinking of something like a
function that returns a uid from a username, but I can't find one in any
books.
Thanx.
Alex (morozov@ava.obu.edu)
------------------------------
Date: 06 May 1999 16:54:28 -0400
From: Uri Guttman <uri@sysarch.com>
Subject: Re: Q: checking wheather the user exists
Message-Id: <x790b1x6kb.fsf@home.sysarch.com>
>>>>> "AAM" == Alexey A Morozov <morozov@ava.obu.edu> writes:
AAM> Does anyone know of a way to check if a given username actually
AAM> corresponds to a real user on a system without going through the passwd
AAM> file (I'm on a Linux platform). I was thinking of something like a
AAM> function that returns a uid from a username, but I can't find one in any
AAM> books.
is this a perl question? where is the perl content? and without going
thru the passwd file which IS the map of user names to uid's, how else would
you find out if a user exists? and which books did you read? converting
a user name to uid is very common. don't you think someone might have
written a routine for it? do you think perl might have support for that?
have you search linux man pages for anything on the passwd file?
sorry if i am a little pissy here, but your question is answering
itself. please do a little homework and ask a perl question here.
uri
--
Uri Guttman ----------------- SYStems ARCHitecture and Software Engineering
uri@sysarch.com --------------------------- Perl, Internet, UNIX Consulting
Have Perl, Will Travel ----------------------------- http://www.sysarch.com
The Best Search Engine on the Net ------------- http://www.northernlight.com
------------------------------
Date: 6 May 1999 21:34:05 GMT
From: stanley@skyking.OCE.ORST.EDU (John Stanley)
Subject: Re: Q: checking wheather the user exists
Message-Id: <7gt1sd$868$1@news.NERO.NET>
In article <x790b1x6kb.fsf@home.sysarch.com>,
Uri Guttman <uri@sysarch.com> wrote:
>is this a perl question? where is the perl content? and without going
>thru the passwd file which IS the map of user names to uid's, how else would
>you find out if a user exists?
The file /etc/passwd is not the only map of user names to uids.
------------------------------
Date: Thu, 06 May 1999 16:29:16 -0500
From: James Ludlow <ludlow@us.ibm.com>
Subject: Re: RegExp Help Please
Message-Id: <373209AC.159B45ED@us.ibm.com>
nkaiser@my-dejanews.com wrote:
> Here's what I have:
>
> $str="name1=%val1%&name2=%val2";
^^^
I'll bet you really have another % in there, right?
%val2%
> $str=~s/%(.*)%/"+$1+"/g;
You should read 'perldoc perlre' and pay special attention the concept
of greediness.
The FAQ is good reading too:
http://www.perl.com/CPAN-local/doc/FAQs/FAQ/PerlFAQ.html#What_does_it_mean_that_regexps_a
--
James Ludlow (ludlow@us.ibm.com)
(Any opinions expressed are my own, not necessarily those of IBM)
------------------------------
Date: Thu, 06 May 1999 20:44:54 GMT
From: yong321@yahoo.com
Subject: Re: Scripting language with LFN support?
Message-Id: <7gsv05$jea$1@nnrp1.deja.com>
Try making a file named qqqqqqqqq (note: 9 Q's). Try "EDIT QQQQQQQQQ." (quotes
not included) and it won't work at least on NT. If you omit the last dot, EDIT
takes it for QQQQQQQQ.QQQ which is a new file.
By the way, does anyone know how to set NT notepad width to my preferred
number, say 80?
Yong
Email:yong321@yahoo.com
In article <7fhvk6$852$1@q.seanet.com>,
"steve hardy" <nospam.shardy@seanet.com> wrote:
>
> >> My question is quite simple:
> >> Is there a scripting language in NT
> >> (akin to shell, batch, perl etc.) that
> >> supports long file names?
> >>
> >> NT's DOS CLI only supports long file
> >> names for built in commands (cd, md, rd,
> >> copy, ren, dir, type...) which makes it worthless.
>
> hmm. Where does this assertion comes from? CMD.exe does support LFN's. If
> the file name happens to include embedded delimiters (e.g., whitespace), the
> name needs to be surrounded by double quotes.
> [as in: NOTEPAD "my long filename.txt"] Of course, if you're working with 16
> bit Applications (or apps written with a 16 bit mindset), those tend not to
> support LFN's regardless of shell.
>
> >> I'm hoping to write platform independent
> >> install scripts that can manage files
> >> on both NT and UNIXwith minimal change.
> >
> >I think perl is the best way to do it.
>
> i agree that perl is a good choice, where platform independence is the
> criterion.
>
> steve
>
>
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: 6 May 1999 21:23:58 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: split, pop, and cut
Message-Id: <7gt19e$4nd$1@gellyfish.btinternet.com>
On Thu, 06 May 1999 18:21:13 GMT Clinton Pierce wrote:
> On Thu, 06 May 1999 12:26:02 -0400, Peter Eisengrein
> <prsinfo@profrecovery.com> wrote:
>
>>I am looking for a way to split not by delimiter (which is like the UNIX
>>'cut -d'), but instead by character count, like the UNIX 'cut -c'
>>command. I know I can cut off the end with pop, but that isn't exactly
>>right either.
>>
>
> Long answer: perldoc perlfaq5
> Short answer: perldoc -f substr
>
Not forgetting of course unpack() ...
> c.l.p.m. a gigantic "English-to-manpage" machine...
"Hundreds of trained professionals waiting at the beck and call of
illiterate newbies"
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: 6 May 1999 21:32:41 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Square brackets in variable for regex
Message-Id: <7gt1pp$4ng$1@gellyfish.btinternet.com>
On Wed, 5 May 1999 17:46:10 -0700 Larry Rosler wrote:
> [Posted and a courtesy copy sent.]
>
> In article <3730D136.BFA0C1@xilinx.com> on Wed, 05 May 1999 16:16:06 -
> 0700, Frederic RIVOALLON <frederic@xilinx.com> says...
>> <HTML>
>
> Good God! My newsreader filters HTML, so I don't see this crap, whereas
> others complain. But this got through. Please don't do it again. Most
> people won't even bother to read it!
>
Your newsreader probably doesnt *filter* HTML but rather will display
an Alternate Part if it is present however in this case it was not
present. A rather nasty bug I'd say - in the browser that is not your
newsreader.
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: 6 May 1999 22:02:13 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Stumped on Regex routine
Message-Id: <7gt3h5$4nt$1@gellyfish.btinternet.com>
On Tue, 4 May 1999 01:31:03 GMT Eric Bohlman wrote:
> Ala Qumsieh <aqumsieh@matrox.com> wrote:
> : Jakob Larnforth <jakob@pris.bc.ca> writes:
>
> : > $Url = 'http://www.somedomain.com/frugal/jummy.html';
> : > $Url =~ s/\/.+?$//;
> : >
> : > I am trying to get the final output of $Url to eq
> : > http://www.somedomain.com/frugal
>
> : $Url =~ s-/[^/]+$--;
>
> Anyone who would choose a delimiter like that is badly in need of being
> whipped with a cat-o'-nine-tails made out of overcooked fettucine.
>
I'm not coming round to your place for dinner then.
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: 6 May 1999 21:10:58 GMT
From: jgd@alpha3.csd.uwm.edu (John G Dobnick)
Subject: Stupid FAQ question of the (day? month? year?)
Message-Id: <7gt0h2$hag$1@uwm.edu>
[Well, stupid and perhaps naive question of the day / month / year /
millenium?]
I see that Tom C is reposting the Perl FAQ, item by item. This is
good.
However, it begs a question.
Many of you c.l.p.m folks refer others to a FAQ item by number. ("See
FAQ 3.1, it answers all." was a recent response.) So, I look at FAQ 3
(perldoc perlfaq3), and the first item _does_ "answer all".
But this brings me to my point. The items are no longer _numbered_ in
the FAQ files. This is fine if one is looking for the first couple of
items, but when one is referred to FAQ 4.47, the search becomes a little
tedious.
Now, I see that Tom numbers his postings. And the _old_ FAQ numbered
its entries. So why does the new FAQ _lack_ item numbers?
Personally, I think the FAQ would be easier to reference if the item
numbers reappeared. Am I in the minority on this?
--
John G Dobnick "Knowing how things work is the basis
Information & Media Technologies for appreciation, and is thus a
University of Wisconsin - Milwaukee source of civilized delight."
jgd@csd.uwm.edu ATTnet: (414) 229-5727 -- William Safire
------------------------------
Date: Thu, 06 May 1999 21:33:04 GMT
From: "Charles R. Thompson" <design@raincloud-studios.com>
Subject: Re: Stupid FAQ question of the (day? month? year?)
Message-Id: <kUnY2.2077$iu1.1456@news.rdc1.tn.home.com>
>Personally, I think the FAQ would be easier to reference if the item
>numbers reappeared. Am I in the minority on this?
I think a bit of reorganization would be beneficial also. Of course after you
read over all those questions 20 or so times you start to remember where
everything is. Maybe that's the point to it all? ;)
I personally like faq4 only because it is laid out a bit easier on the eyes by
subcategorizing the overall topic, but the others get a bit screwy after that.
There may be some type of structure to it, but it often eludes me as it is not
visually aparant until you read through 6-7 questions.
The overall thing I see that could stand fixing is that the HTML titles of the
FAQ pages show what it is 'all about' but the links to them don't. I think
that's a bit whacked. I often have to click on at least 2 or 3 before I get
the right page. Newbies probably scan through 5 or 6 unless someone has told
them the #.
Personally I think a slightly more descriptive front end index would make it
easier for beginners. Subcategories like FAQ4 would be a dream.
a searchable FAQ independent of the total site search might be slick too, but
I only say that because I'm working on a search script now. :)
CT
------------------------------
Date: Thu, 06 May 1999 20:23:13 GMT
From: ha@canes.gsw.peachnet.edu
Subject: system call returning 9
Message-Id: <7gstnb$iam$1@nnrp1.deja.com>
Would anybody know what $rc = system("prog"); where $rc =9 means ????
prog could not execute for some reason :(
--
Think Smile Climb Montains Eat Ice Cream
Do what you like and Like what you do
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Thu, 06 May 1999 14:18:22 -0700
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: system call returning 9
Message-Id: <3732071E.21CBE675@mail.cor.epa.gov>
ha@canes.gsw.peachnet.edu wrote:
>
> Would anybody know what $rc = system("prog"); where $rc =9 means ????
> prog could not execute for some reason :(
Well, I'm glad to see your checking your return codes. :-)
If you want the output of your `prog', you don't get it this way.
Use backticks, or look up some of the fun things you can do
with open().
system() runs your `prog' and then gives you a return value. But
that is the exit status of your program `prog', which you neglected
to tell us about. In the manpage for system(), there is a more
detailed example of analyzing error codes (for a unix box, BTW).
What does the documentation on `prog' tell you about errorlevels
that it returns on failures?
David
--
David Cassell, OAO cassell@mail.cor.epa.gov
Senior Computing Specialist phone: (541) 754-4468
mathematical statistician fax: (541) 754-4716
------------------------------
Date: 6 May 1999 20:52:06 GMT
From: salvucci@advlsi.enet.dec.com ( )
Subject: Re: testing expressions in the IF statement
Message-Id: <7gsvdm$4924@worf.qntm.com>
try the following:
if ( ($x < 5 ) && ($x > 2) ) {
print" $x is less than 5 and greater than 2 \n";
}
------------------------------
Date: Thu, 06 May 1999 21:23:11 GMT
From: pricerbumanto@my-dejanews.com
Subject: Re: unos problemitas
Message-Id: <7gt17r$lk7$1@nnrp1.deja.com>
In article <MPG.119b8460e1baadab9899e0@nntp.hpl.hp.com>,
lr@hpl.hp.com (Larry Rosler) wrote:
> In article <37319B7E.95E92D76@mail.uca.edu> on Thu, 06 May 1999 08:39:10
> -0500, Cameron Dorey <camerond@mail.uca.edu> says...
> > BTW, "problemo" predates the Simpsons or other TV shows I've seen listed
> > in this thread by quite a few years. I remember hearing/using it 35-40
> > years ago, when I was a kid. Pig-Spanish, I think.
>
> Someone suggested Esperanto. Plural 'problemoj' ??? :-)
Yes, "problemo" is Esperanto, "problema" (masculine but with "a" ending, like
"dia" in "Buenos Dias") is Spanish... but the "Pig-Spanish" theory makes
more sense to me, at least if we're talking about the origin of the common
usage in the US. Most Americans haven't even _heard_ of Esperanto (and those
who have, often believe all sorts of wierd "factoids" about it... not that
there arent' plenty of "factoids" about Spanish floating about, too).
See <http://www.esperanto.net> for more information about Esperanto, if
you're interested. The "-oj" at the end of "problemoj" is pornounced like
the "oy" in English "boy" BTW, not loke the "og" in "Roger"... (Zamenhof
got it from the plural ending for second declension Greek nouns in the
nominative, I think, not that it matters).
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Thu, 06 May 1999 21:20:14 GMT
From: "Charles R. Thompson" <design@raincloud-studios.com>
Subject: Which HTTP module for extracting tags?
Message-Id: <iInY2.2071$iu1.1828@news.rdc1.tn.home.com>
I'm looking on CPAN and seeing a bit too much. Which HTTP module will allow me
the quickest way to extract text between specific HTML tags with the least
amount of overhead? I also need it to handle tags across newlines.
Say if I wanted to jerk just the title out of a page or get an array of all
the a href links. That kind of simple flexibility.
CT
------------------------------
Date: 12 Dec 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Special: Digest Administrivia (Last modified: 12 Dec 98)
Message-Id: <null>
Administrivia:
Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing.
]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body. Majordomo will then send you instructions on how to confirm your
]subscription. This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V8 Issue 5587
**************************************