[26703] in Perl-Users-Digest
Perl-Users Digest, Issue: 8803 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Dec 28 06:05:32 2005
Date: Wed, 28 Dec 2005 03:05:04 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Wed, 28 Dec 2005 Volume: 10 Number: 8803
Today's topics:
How to print (2 & (1 * (2**32)))? <sonet.all@msa.hinet.net>
Re: How to print (2 & (1 * (2**32)))? (Hue-Bond)
Re: How to print (2 & (1 * (2**32)))? <sonet.all@msa.hinet.net>
Re: How to print (2 & (1 * (2**32)))? <bernard.el-haginDODGE_THIS@lido-tech.net>
Re: perl, v5.8.7 Windows 2003 PPM 3.3 [OK NOW!] <pekka_news@yahoo.co.uk>
Re: perl, v5.8.7 Windows 2003 PPM 3.3 <matthew.garrish@sympatico.ca>
Re: perl, v5.8.7 Windows 2003 PPM 3.3 <sisyphus1@nomail.afraid.org>
Re: perl, v5.8.7 Windows 2003 PPM 3.3 <sisyphus1@nomail.afraid.org>
Re: Serious Perl Regular Expression deficiency? <tadmc@augustmail.com>
Re: unable to get all html code on Yahoo <glex_no-spam@qwest-spam-no.invalid>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Wed, 28 Dec 2005 18:06:40 +0800
From: "sonet" <sonet.all@msa.hinet.net>
Subject: How to print (2 & (1 * (2**32)))?
Message-Id: <doto47$76t$1@netnews.hinet.net>
print (2 & (1 * (2**32)));
The result is 2 ??
------------------------------
Date: Wed, 28 Dec 2005 10:12:42 +0000 (UTC)
From: "David Serrano (Hue-Bond)" <responder_solo_en_el_grupo@yahoo.es>
Subject: Re: How to print (2 & (1 * (2**32)))?
Message-Id: <slrndr4p8q.1m7.responder_solo_en_el_grupo@genus.hue-bond.info>
sonet, mié20051228@11:06:40(CET):
>
> print (2 & (1 * (2**32)));
>
> The result is 2 ??
Of course. '2 & anything' will yield 2 for any even 'anything', and 0 for
any odd 'anything'. See perlop.
--
David Serrano
------------------------------
Date: Wed, 28 Dec 2005 18:33:26 +0800
From: "sonet" <sonet.all@msa.hinet.net>
Subject: Re: How to print (2 & (1 * (2**32)))?
Message-Id: <dotpm7$kvb$1@netnews.hinet.net>
2 and 4=2 ?
-----------------------
00000010
and 00000100
=============
=00000010 ???
"David Serrano (Hue-Bond)" <responder_solo_en_el_grupo@yahoo.es> ¦b¶l¥ó
news:slrndr4p8q.1m7.responder_solo_en_el_grupo@genus.hue-bond.info ¤¤¼¶¼g...
> sonet, mie20051228@11:06:40(CET):
> >
> > print (2 & (1 * (2**32)));
> >
> > The result is 2 ??
>
> Of course. '2 & anything' will yield 2 for any even 'anything', and 0 for
> any odd 'anything'. See perlop.
>
>
> --
> David Serrano
------------------------------
Date: Wed, 28 Dec 2005 11:35:29 +0100
From: "Bernard El-Hagin" <bernard.el-haginDODGE_THIS@lido-tech.net>
Subject: Re: How to print (2 & (1 * (2**32)))?
Message-Id: <Xns973A75EA45ECAelhber1lidotechnet@10.232.40.227>
"sonet" <sonet.all@msa.hinet.net> wrote:
> print (2 & (1 * (2**32)));
The answer to the question you posed in the Subject is:
print '(2 & (1 * (2**32)))';
> The result is 2 ??
And the answer to that question is yes.
If these answers are not satisfactory, it is because your questions
aren't very clear. Can you help us help you by being more clear in what
you're asking?
--
Cheers,
Bernard
------------------------------
Date: Wed, 28 Dec 2005 06:01:01 GMT
From: "Pekka Siiskonen" <pekka_news@yahoo.co.uk>
Subject: Re: perl, v5.8.7 Windows 2003 PPM 3.3 [OK NOW!]
Message-Id: <xSpsf.13$zs5.7@read3.inet.fi>
"Matt Garrish" <matthew....@....ca> wrote in message
news:<i8ksf.957$Yk2.121638@news20.bellglobal.com>...
> It sounds like there was something wrong with the ppd file you were trying
> to install, which isn't a reflection on the PPM program itself. As John
> noted in his follow-up, the file appears to have been replaced now.
ppm> install dbi
====================
Install 'dbi' version 1.49 in ActivePerl 5.8.7.815.
====================
Downloaded 556633 bytes.
Extracting 73/73: blib/arch/auto/DBI/Driver_xst.h
...
Successfully installed dbi version 1.49 in ActivePerl 5.8.7.815.
ppm>
Big thank to all!
pekka
------------------------------
Date: Tue, 27 Dec 2005 18:30:27 -0500
From: "Matt Garrish" <matthew.garrish@sympatico.ca>
Subject: Re: perl, v5.8.7 Windows 2003 PPM 3.3
Message-Id: <i8ksf.957$Yk2.121638@news20.bellglobal.com>
"Pekka Siiskonen" <pekka_news@yahoo.co.uk> wrote in message
news:dosbvf$310$1@phys-news4.kolumbus.fi...
> ----- Original Message -----
> From: "Matt Garrish" <matthew...@...ca>
> Newsgroups: comp.lang.perl.misc
> Sent: Tuesday, December 27, 2005 4:21 PM
> Subject: Re: perl, v5.8.7 Windows 2003 PPM 3.3
>> I think you've misunderstood. PPM comes with ActivePerl and *does not*
>> require anything else to run. When you install ActivePerl, you have a
>> working version of PPM. The documentation, however, made it read like you
>> needed nmake and a C compiler, which is only true when using the CPAN
> shell
>> and has nothing to do with PPM (i.e., running the command "perl -MCPAN -e
>> shell").
>
>
> so ... What did I do wrong or what went wrong as I could find the DBI
> module
> (search dbi) but could not install it? Absolutely not a true perl pro but
> am
> willing to learn!
>
It sounds like there was something wrong with the ppd file you were trying
to install, which isn't a reflection on the PPM program itself. As John
noted in his follow-up, the file appears to have been replaced now.
The next time you have a problem like this, try running a search first. You
might find that you're able to install the previous version of the module
(there are usually a couple of versions of a module available). You can
always upgrade later when the problem gets fixed.
You'll also eventually find that not all Perl modules can be installed from
the default repositories (or sometimes not at all even adding other
repositories); it all depends on whether a ppd file has been created. It's
times like those that you have to go to the CPAN shell on Windows.
Matt
------------------------------
Date: Wed, 28 Dec 2005 16:22:44 +1100
From: "Sisyphus" <sisyphus1@nomail.afraid.org>
Subject: Re: perl, v5.8.7 Windows 2003 PPM 3.3
Message-Id: <43b2218b$0$17702$afc38c87@news.optusnet.com.au>
"John Bokma" <john@castleamber.com>
.
.
>
> > A better
> > alternative is (imho) to install dmake and the MinGW compiler - both
> > of which are freely available,
>
> as is nmake, and Microsoft's C/C++ compiler...
>
MSVC++6.0 (which is the recommended Microsoft compiler to use with
ActiveState perl) is *not* freely available. There is certainly a free
version of the Microsoft C/C++ compiler and you can seek out and download
all of the bits and pieces if you so desire - and use it to build your own
perl. But it's not a good idea to use *that* compiler with ActiveState-built
perl.
By contrast, MinGW and dmake are straightforward downloads (and work easily
with ActiveState perl if you don't want to use them to build your own perl).
I recommend that approach ahead of the free Microsoft C/C++ compiler (mainly
on the bases of ease of installation, and milage) ... but no-one is under
any obligation to take any notice of what I recommend.
Cheers,
Rob
------------------------------
Date: Wed, 28 Dec 2005 16:27:41 +1100
From: "Sisyphus" <sisyphus1@nomail.afraid.org>
Subject: Re: perl, v5.8.7 Windows 2003 PPM 3.3
Message-Id: <43b222b3$0$9291$afc38c87@news.optusnet.com.au>
"Pekka Siiskonen"
>
>
> so ... What did I do wrong or what went wrong as I could find the DBI
module
> (search dbi) but could not install it? Absolutely not a true perl pro but
am
> willing to learn!
>
They were having trouble with their server - as I posted 3 or 4 days ago.
It seems to be fixed now.
Cheers,
Rob
------------------------------
Date: Tue, 27 Dec 2005 20:57:09 -0600
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: Serious Perl Regular Expression deficiency?
Message-Id: <slrndr3vo5.1nk.tadmc@magna.augustmail.com>
robic0 <> wrote:
> On Fri, 23 Dec 2005 15:17:21 -0800, robic0 wrote:
>
> Thanks for the patients folks.
You crack me up, doctor!
> I'm doing a xml
> parser using just regex so I want to get this right.
That is mathematically impossible you know.
You will be working on it for a long long time, and never have it right.
> I have concentrated on the docs on regex for this and
> oh my god its got problems.
Yes, parsing a Context Free language using a Regular grammar
is simply not possible.
(but Perl's regular expressions aren't actually "regular" at all.)
> I would like the writers
> of Perl and Larry Wall to take a look at the code below.
I would like you to read the Dragon Book.
> In other words, given the
> XML specifications, this will always work.
Yeah, right.
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Tue, 27 Dec 2005 16:28:13 -0600
From: "J. Gleixner" <glex_no-spam@qwest-spam-no.invalid>
Subject: Re: unable to get all html code on Yahoo
Message-Id: <2ejsf.14$E72.42@news.uswest.net>
tmp1235711@yahoo.com wrote:
> I have tried for the past several hours to figure out what I need to
> get all fo the data on this web page:
> http://alaron.com/quotes.php?quote=forex but I am unable to get the
> price data. Here is my code:
Take a look at the HTML that's returned. The data is generated from
another page 'get.jsp'.
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
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.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
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.
#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 V10 Issue 8803
***************************************