[29404] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 648 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Jul 13 00:10:08 2007

Date: Thu, 12 Jul 2007 21:09:05 -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           Thu, 12 Jul 2007     Volume: 11 Number: 648

Today's topics:
    Re: "Pop" an alert of some sort in Windows <bik.mido@tiscalinet.it>
    Re: "Pop" an alert of some sort in Windows <remay.uk@googlemail.com>
    Re: "Pop" an alert of some sort in Windows <remay.uk@googlemail.com>
    Re: [OT] stopping spam with JavaScript <bik.mido@tiscalinet.it>
    Re: backing up perl <bik.mido@tiscalinet.it>
    Re: backing up perl <bik.mido@tiscalinet.it>
    Re: backing up perl <stoupa@practisoft.cz>
    Re: Difficulty manipulating hashes <invalid@invalid.net>
    Re: Difficulty manipulating hashes <tadmc@seesig.invalid>
        Help writing semaphore codes <lamthierry@gmail.com>
    Re: Help writing semaphore codes <ts@dionic.net>
    Re: Help writing semaphore codes xhoster@gmail.com
        Life + Perl = Golly (Andrew Trevorrow)
    Re: Life + Perl = Golly <xanthian@well.com>
    Re: Portable general timestamp format, not 2038-limited <glex_no-spam@qwest-spam-no.invalid>
    Re: re-lurking <bik.mido@tiscalinet.it>
    Re: re-lurking <bik.mido@tiscalinet.it>
    Re: re-lurking <invalid@invalid.net>
    Re: re-lurking <jgibson@mail.arc.nasa.gov>
    Re: re-lurking <tadmc@seesig.invalid>
    Re: The Modernization of Emacs: terminology buffer and  <miles@gnu.org>
    Re: The Modernization of Emacs: terminology buffer and  <twisted0n3@gmail.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Thu, 12 Jul 2007 23:48:41 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: "Pop" an alert of some sort in Windows
Message-Id: <oh7d9395d2mrlveg5o670mbk9s39u5mmhh@4ax.com>

On Sun, 8 Jul 2007 23:24:23 +0200, "Lambik" <lambik@kieffer.nl> wrote:

>I love it. It is very versatile. There are windows stuff you can do which
>you can't do with TK and as far as I know not even with wxPerl. Like those
>windows you have in MSN Messenger. You know those "someone has signed in"
>garbage.

Well, I wouldn't call it "garbage". I can imagine useful uses for
those. Actually the behaviour with IMs is good. Pidgin, for example,
doesn't at least under Windows, and it only gives an acoustic signal:
so sometimes I maximize it to check who logged in, and of course I
would prefer the notification instead. Said this, the thingie is
*probably* doable in Tk and in other toolkits: it's enough to fork
another process which will consist of a single window, emulating all
the motion by itself, and with special decoration... it is not true
that all Tk apps are forced to have the classical Tk look & feel:
indeed they can be quite different. Of course I've seen *gurus* do
this kinda things, and I'm not, let alone a beginner, so I wouldn't
know where to start, but yes: I think it's *doable*, just not easily.


Michele
-- 
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
 .'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,


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

Date: Thu, 12 Jul 2007 17:22:11 -0700
From:  RobMay <remay.uk@googlemail.com>
Subject: Re: "Pop" an alert of some sort in Windows
Message-Id: <1184286131.712204.137680@w3g2000hsg.googlegroups.com>

On 8 Jul, 21:17, Michele Dondi <bik.m...@tiscalinet.it> wrote:
> On Sun, 8 Jul 2007 18:42:07 +0200, "Lambik" <lam...@kieffer.nl> wrote:
> >use Win32::GUI ();
>
> Why an explicitly empty import list?

History, and backwards compatibility.  Win32::GUI up to V1.04 exports
lots of constants by default (300+ of them), and if you don't want
them you need to apply an empty import list.  V1.05 still exports
these constants by default, for backwards compatibility, but warns
with an empty export list - so right now now you need an empty export
list if you don't want the constants, and you don't want the warning.
A future version (probably 1.06, but not decided yet) will stop
exporting the default constants (and will issue a warning without an
empty import list);  A further release will remove the warning,
allowing a simple
  use Win32::GUI;
to not pollute the caller's namespace.  It takes time to change the
past.

Regards,
Rob.



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

Date: Thu, 12 Jul 2007 17:28:05 -0700
From:  RobMay <remay.uk@googlemail.com>
Subject: Re: "Pop" an alert of some sort in Windows
Message-Id: <1184286485.787959.261900@n2g2000hse.googlegroups.com>

On 8 Jul, 21:17, Michele Dondi <bik.m...@tiscalinet.it> wrote:
> On Sun, 8 Jul 2007 18:42:07 +0200, "Lambik" <lam...@kieffer.nl> wrote:
> >use Win32::GUI ();

> I installed Win32::GUI but the documentation seems to be lacking both
> from command line perldoc (which I generally use) and from the HTML
> version: in fact it doesn't seem to follow the standard POD structure,
> but the latter has a table of contents with links... which are...
> ehm... broken!

What version of Win32::GUI, and what version of perl?  I fixed the
missing POD documents (I think) with Win32::GUI 1.05.  Sadly with
ActivePerl 5.8.8, the way PPM deals with generating HTML from the POD
changed, and despite great efforts to distribute correctly formatted
and linked HTML pages, PPM insists on re-building them , and does so
wrong (if you look at the HTML docs, you'll find all the links are
absolute, and o the directory where the PPM got unpacked.  It's on my
list of things to look into for the ext release.  In the meantime all
the docs are available on line at  http://perl-win32-gui.sourceforge.net/docs/
(although I won't pretend that they are complete or 100% accurate)

Regards,
Rob.



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

Date: Thu, 12 Jul 2007 23:33:26 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: [OT] stopping spam with JavaScript
Message-Id: <a17d935k5ml3m0vr41j3haq122ic7d3bi2@4ax.com>

On Sun, 8 Jul 2007 16:10:22 +0200, "Dr.Ruud" <rvtol+news@isolution.nl>
wrote:

>> Who's afraid of big bad JS anymore, nowadays?!?
>
>New security breaches that are only possible by using your JavaScript
>enabled browser, pop-up every other week. JavaScript is involved in many
>recent attacks, and will be for years (AJAX, AIR).

Well, you're right after all... but that won't stop me from using
it... BTW: I also recently saw the following in PerlMonks:

http://perlmonks.org/?node_id=606832


Michele
-- 
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
 .'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,


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

Date: Fri, 13 Jul 2007 00:44:31 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: backing up perl
Message-Id: <okbd935onsctla2no5afurc3l9s9l81pr1@4ax.com>

On Mon, 9 Jul 2007 20:23:57 -0400, "merl the perl"
<invalid@invalid.net> wrote:

>I'm certain I have the install prog for this somewhere on disk already but 
>don't have any good guesses as to how to search for it.  Are there any 

The default installation is in C:\Perl; I like to put it in
C:\Programmi\Perl. "Programmi" is the Italian version of "Program
Files".


Michele
-- 
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
 .'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,


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

Date: Fri, 13 Jul 2007 00:42:41 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: backing up perl
Message-Id: <debd93pmomkql3jtid2v18mha50fpipckg@4ax.com>

On Tue, 10 Jul 2007 02:56:03 -0400, "merl the perl"
<invalid@invalid.net> wrote:

>Can someone who's been around the block a couple times more times than I 
>comment on his/her experience with activestate.  I look at that link and 

Good! So what?
(See also: <http://use.perl.org/comments.pl?sid=36086&cid=56128>)


Michele
-- 
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
 .'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,


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

Date: Fri, 13 Jul 2007 02:54:35 +0200
From: "Petr Vileta" <stoupa@practisoft.cz>
Subject: Re: backing up perl
Message-Id: <f76itq$1j6l$1@ns.felk.cvut.cz>

Michele Dondi wrote:
> On Mon, 9 Jul 2007 20:23:57 -0400, "merl the perl"
> <invalid@invalid.net> wrote:
>
>> I'm certain I have the install prog for this somewhere on disk
>> already but don't have any good guesses as to how to search for it.
>> Are there any
>
> The default installation is in C:\Perl; I like to put it in
> C:\Programmi\Perl. "Programmi" is the Italian version of "Program
> Files".
>
This is not good idea ;-) DOS name of this directory will be 
"C:\Progra~1\Perl" and sometime you could have problems. Above this in few 
files in C:\Perl directory is stored this path, e.g. C:\Perl\lib\Config.pm

-- 

Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail 
from another non-spammer site please.)





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

Date: Thu, 12 Jul 2007 17:49:19 -0400
From: "merl the perl" <invalid@invalid.net>
Subject: Re: Difficulty manipulating hashes
Message-Id: <9_OdnctdfdB4PAvbnZ2dnUVZ_sWdnZ2d@comcast.com>


"Jim Gibson" <jgibson@mail.arc.nasa.gov> wrote in message 
news:120720071116312549%jgibson@mail.arc.nasa.gov...
> In article <3b-dnY2P6ZRQzwjbnZ2dnUVZ_vWtnZ2d@comcast.com>, merl the
> perl <invalid@invalid.net> wrote:
>
>> "Dr.Ruud" <rvtol+news@isolution.nl> wrote in message
>> news:f73ojo.12c.1@news.isolution.nl...
>> > limitz schreef:
>> >
>> >> Here is my script, followed by my question at the end:
>> I have a different question.  I don't know what a hash literal is.  In my
>> reference book, I can find out things about a hash, which apparently in 
>> perl
>> has nothing to do with the character that I call "hash:" #.  "Literal" is 
>> no
>> help in the index.  I'm thinking that a hash literal might be the spoken
>> version of something else, probably with more words, in the literature, 
>> and
>> seek comment on it.
>
> See, for example, <http://en.wikipedia.org/wiki/Literal>:
>
> "any notation for representing a value within programming language
> source code; for example, an object literal, a string literal, a
> function literal"
>
> A "hash" in Perl is an associative array. A hash literal is a list
> comprising an even number of scalar values. The odd-numbered scalars
> are used for the keys, and the even-numbered ones for the values
> associated with the preceding key. For example:
>
> my %hash = ( 'key1', 'val1', 'key2', 'val2' );
>
> It is customary to use '=>' between key and value, which allows you to
> use barewords for the keys (and looks nicer):
>
> my %hash = ( key1 => 'val1', key2 => 'val2' );
>
> See 'perldoc perldata' for more info.
Thanks for the generous response.  I actually had perldoc perldata already 
opened in a dos window, leftover from last night.  The first sentence is: 
Perl has three built-in data types: scalars, arrays of scalars, and 
associative arrays of scalars, known as "hashes".  But I read right over it, 
because I didn't know what I was looking for.  BTW for newcomers like me, it 
helps to read these things in a better environment than a crappy dos window. 
You can redirect with perldoc perldata >text7.txt, and then find the doc to 
open with your program of choice.

So the arrays don't associate as in a *(b*c)=(a*b)*c, but the values and 
keys associate, as in, if you have one, you can get the other.  I find the 
semantics of perl quite challenging.
Cheers, merl 




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

Date: Thu, 12 Jul 2007 22:51:17 GMT
From: Tad McClellan <tadmc@seesig.invalid>
Subject: Re: Difficulty manipulating hashes
Message-Id: <slrnf9dbr5.que.tadmc@tadmc30.sbcglobal.net>

merl the perl <invalid@invalid.net> wrote:


> So the arrays don't associate as in a *(b*c)=(a*b)*c, but the values and 
> keys associate, 


So far, so good.


> as in, if you have one, you can get the other.  


Not so good.

If you have the key you can get the value, but not the other
way around (because there may be multiple keys with the same value).


> I find the 
> semantics of perl quite challenging.


The semantics of a hash data structure are what you find challenging.

Hashes were around long before Perl, try googling "hash data structure".


-- 
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"


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

Date: Thu, 12 Jul 2007 14:27:43 -0700
From:  Thierry <lamthierry@gmail.com>
Subject: Help writing semaphore codes
Message-Id: <1184275663.424372.98120@q75g2000hsh.googlegroups.com>

I have the following perl file greet.pl

# LOCK ACQUIRED
print "hello";
# LOCK RELEASED

My linux os can have four threads running the greet.pl file
simultaneously. How should I write the semaphore codes so that only
one thread can access the print "hello" line at any given time?


Thierry



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

Date: Thu, 12 Jul 2007 22:38:43 +0100
From: Tim Southerwood <ts@dionic.net>
Subject: Re: Help writing semaphore codes
Message-Id: <46969f61$0$639$5a6aecb4@news.aaisp.net.uk>

Thierry coughed up some electrons that declared:

> I have the following perl file greet.pl
> 
> # LOCK ACQUIRED
> print "hello";
> # LOCK RELEASED
> 
> My linux os can have four threads running the greet.pl file
> simultaneously. How should I write the semaphore codes so that only
> one thread can access the print "hello" line at any given time?
> 
> 
> Thierry

Hi,

In the context of cooperating forked processes (not threads as you
mentioned), I used this module:

IPC::Semaphore

However, there might be a better way with threads - best hang around in case
someone else can add anything. I never do threaded programming.

Cheers

Tim


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

Date: 12 Jul 2007 22:34:25 GMT
From: xhoster@gmail.com
Subject: Re: Help writing semaphore codes
Message-Id: <20070712183428.006$Sz@newsreader.com>

Thierry <lamthierry@gmail.com> wrote:
> I have the following perl file greet.pl
>
> # LOCK ACQUIRED
> print "hello";
> # LOCK RELEASED
>
> My linux os can have four threads running the greet.pl file
> simultaneously. How should I write the semaphore codes so that only
> one thread can access the print "hello" line at any given time?

You can declare a shared variable (see threads::shared) to serve as a
sempahore, and lock that.

{
  lock $sema;
  print "hello";
} # automatically released on scope exit

Or maybe use Thread::Semaphore, which I have never used.

Xho

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service                        $9.95/Month 30GB


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

Date: Fri, 13 Jul 2007 13:19:02 +1000
From: andrew@trevorrow.com (Andrew Trevorrow)
Subject: Life + Perl = Golly
Message-Id: <andrew-1307071319020001@192.168.1.2>

Golly is an open source, cross-platform Life app which uses
Gosper's hashlife algorithm to allow the exploration of patterns
at unprecedented scales and speeds.  More details are available
at Golly's web site:

   http://golly.sourceforge.net/

Golly has been using Python as its scripting language, but the
following 1.3 beta versions now support Perl as well:

ftp://ftp.trevorrow.com/beta/golly-1.3-win.zip       (Windows 2K+)
ftp://ftp.trevorrow.com/beta/golly-1.3-gtk.tar.gz    (Linux i386)
ftp://ftp.trevorrow.com/beta/golly-1.3-mac.zip       (Mac OS 10.4.x)
ftp://ftp.trevorrow.com/beta/golly-1.3-mac1039.zip   (Mac OS 10.3.9)

See Help > Perl Scripting for all the details.

A number of example .pl scripts are included in Scripts/Perl/.
I don't have a lot of experience with Perl so it would be nice
if a Perl expert could run their eye over my code and check
for any bloopers or inefficiencies.  Other Perl scripts would
be most welcome.

Golly uses an embedded Perl interpreter to run .pl scripts
and should work happily with any Perl 5.8.x installation.
Please let me know if you have any problems.

Andrew


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

Date: Thu, 12 Jul 2007 20:57:26 -0700
From:  Kent Paul Dolan <xanthian@well.com>
Subject: Re: Life + Perl = Golly
Message-Id: <1184299046.637469.158480@j4g2000prf.googlegroups.com>

and...@trevorrow.com (Andrew Trevorrow) wrote:

> Golly is an open source, cross-platform Life app
> which uses Gosper's hashlife algorithm to allow
> the exploration of patterns at unprecedented
> scales and speeds.  More details are available at
> Golly's web site:

>    http://golly.sourceforge.net/

> Golly has been using Python as its scripting
> language, but the following 1.3 beta versions now
> support Perl as well:

> ftp://ftp.trevorrow.com/beta/golly-1.3-win.zip      (Windows 2K+)

> ftp://ftp.trevorrow.com/beta/golly-1.3-gtk.tar.gz   (Linux i386)

> ftp://ftp.trevorrow.com/beta/golly-1.3-mac.zip      (Mac OS 10.4.x)

> ftp://ftp.trevorrow.com/beta/golly-1.3-mac1039.zip  (Mac OS 10.3.9)

> See Help > Perl Scripting for all the details.

> A number of example .pl scripts are included in
> Scripts/Perl/.  I don't have a lot of experience
> with Perl so it would be nice if a Perl expert
> could run their eye over my code and check for any
> bloopers or inefficiencies.  Other Perl scripts
> would be most welcome.

> Golly uses an embedded Perl interpreter to run .pl
> scripts and should work happily with any Perl
> 5.8.x installation.  Please let me know if you
> have any problems.

Thanks for that, Andrew. I just downloaded it. Now,
without looking to see if this is there yet, one
thing I wanted in the previous release was more
complex selection mechanisms, so that I could
select, say, a box and then select out the middle,
or otherwise decorate the Golly universe with a lot
of disconnected selected areas, before turning on
"random fill" and going away for the many minutes
such a fill typically would require. A look at the
GIMP selection capabilities will give you an idea
what a rich set of such tools could look like.

I didn't understand from your writeup: if Golly has
a "built in" Perl interpreter, why is some external
Perl environment needed?

Quantum valeat.

xanthian.

By the way, Golly has some utility as a source of
input for abstract art, perhaps not its design use.



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

Date: Thu, 12 Jul 2007 15:43:24 -0500
From: "J. Gleixner" <glex_no-spam@qwest-spam-no.invalid>
Subject: Re: Portable general timestamp format, not 2038-limited
Message-Id: <4696926c$0$510$815e3792@news.qwest.net>

Martin Gregorie wrote:
> Ilya Zakharevich wrote:
>> My point is that attributing something to SH due to it appearing in
>> ABHoT is like attributing it to you since it was mentioned in your
>> post...
>>
> OK, so who should it be attributed to?
> 
> 

Alexander Friedmann


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

Date: Thu, 12 Jul 2007 23:19:35 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: re-lurking
Message-Id: <ml6d9352ksc9rjltcn1195bcsfme0a71ed@4ax.com>

On Mon, 9 Jul 2007 13:39:49 -0400, "Wade Ward" <invalid@invalid.nyet>
wrote:

>Writing a newsreader is grandiose for me right now, but definitely the 
>direction I'm heading.  If OE or Thunderbird met my needs minimally, I 
>wouldn't feel the need.  OE will never let you take a message out of the OE 

How 'bout pine, tin, slrn, FreeAgent?


Michele
-- 
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
 .'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,


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

Date: Thu, 12 Jul 2007 23:18:28 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: re-lurking
Message-Id: <ljpc93liv9ee2rvqifudonrr1sgaqeo1hb@4ax.com>

On Mon, 09 Jul 2007 17:00:38 GMT, QoS@domain.invalid wrote:

>Another thing.. ive noticed that you are using the 'newnews <since>'
>method of gathering headers and will suggest that you use xover as the
>many new emerging nntp standard works are leaning towards this method,
>that said it is a good idea to fall back to newnews if xover fails.

Good of you to let us know. Indeed I had I known about that, and I
probably would have, if I had read the whole documentation as I
recommended to the OP, I would have use it instead of manually parsing
the headers. Only I'm curious as to know whether the date, if present,
is always the third field... I also have another question for you: I
wouldnt' use a MESSAGE-SPEC comprising *all* the available articles
anyway, but from the communication with the server POV, is it better
to call the xover method for each of them or for a bunch at a time,
say 10 or 100?


Michele
-- 
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
 .'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,


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

Date: Thu, 12 Jul 2007 18:03:27 -0400
From: "merl the perl" <invalid@invalid.net>
Subject: Re: re-lurking
Message-Id: <boOdnV16qo2pOAvbnZ2dnUVZ_vOlnZ2d@comcast.com>


"Michele Dondi" <bik.mido@tiscalinet.it> wrote in message 
news:sljc93do6iv92hais7q42dovp2qbd1lb8q@4ax.com...
> On Mon, 9 Jul 2007 02:52:46 -0400, "Wade Ward" <invalid@invalid.nyet>
> wrote:
>
>>Most of the numbers are similar, if not the same.  I didn't suspect, when 
>>I
>>threw in the towel, that the constructor was not syntactically correct.  I
>
> It was *syntactically* correct. *Semantically* wrong.
The offending line was:
my $nntp = Net::NNTP->new($SERVER, ( Debug => 1) );
, with curly braces around the debug expression.  Would it, for example, be 
a syntax error if I wrote:
my $nntp = Net::NNTP->new($SERVER, ( Debug <= 1) );
, with the arrow operator backwards?

> The curly braces may have been fine: many of Benchmark.pm's functions
> work like that.
Where do I find out things about Benchmark.pm ?
Cheers, merl




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

Date: Thu, 12 Jul 2007 16:10:33 -0700
From: Jim Gibson <jgibson@mail.arc.nasa.gov>
Subject: Re: re-lurking
Message-Id: <120720071610333948%jgibson@mail.arc.nasa.gov>

In article <boOdnV16qo2pOAvbnZ2dnUVZ_vOlnZ2d@comcast.com>, merl the
perl <invalid@invalid.net> wrote:

> Where do I find out things about Benchmark.pm ?

If it is installed on your system (and it should be because it comes
with recent perls), enter

  perldoc Benchmark

See 'perldoc perldoc' for details and options.

 Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
    ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------        
                http://www.usenet.com


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

Date: Thu, 12 Jul 2007 21:39:10 -0500
From: Tad McClellan <tadmc@seesig.invalid>
Subject: Re: re-lurking
Message-Id: <slrnf9dpee.snr.tadmc@tadmc30.sbcglobal.net>

merl the perl <invalid@invalid.net> wrote:
> "Michele Dondi" <bik.mido@tiscalinet.it> wrote in message 
> news:sljc93do6iv92hais7q42dovp2qbd1lb8q@4ax.com...

>> It was *syntactically* correct. *Semantically* wrong.

> Would it, for example, be 
> a syntax error 


You can tell if it is a syntax error because the program will
fail to compile or run.

If it runs, then it does not contain any syntax errors.


> if I wrote:
> my $nntp = Net::NNTP->new($SERVER, ( Debug <= 1) );
> , with the arrow operator backwards?


That is *syntactically* correct [1]. *Semantically* wrong.


To help understand the difference, consider a bit of
natural language instead:

   Pigs can fly.

That is syntactically correct. It has an object where an object
goes, a verb where a verb goes, etc...

It is semantically incorrect however. [2]



[1] because <= means "less than or equal".

[2] except perhaps for a cruel use of a trebuchet. [3]

[3] Oh, I was thinking of cows, not pigs.

-- 
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"


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

Date: Fri, 13 Jul 2007 08:10:03 +0900
From: Miles Bader <miles@gnu.org>
Subject: Re: The Modernization of Emacs: terminology buffer and keybinding
Message-Id: <87myy1gqwk.fsf@catnip.gol.com>

Twisted <twisted0n3@gmail.com> writes:
> I won't dignify your insulting twaddle and random ad-hominem verbiage
> with any more responses after this one. Something with actual logical
> argumentation to rebut may be another matter of course.

Er, why don't you just answer his question (what version)?  He's asking
for actual information, which will help us understand what you are
(trying) to to say.

If you continue to just make vague and unsupported (and rather hostile)
assertions, without examples, version numbers, or other concrete
information, do you expect anybody will continue listening to you?

-miles
-- 
The secret to creativity is knowing how to hide your sources.
  --Albert Einstein


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

Date: Fri, 13 Jul 2007 02:09:48 -0000
From:  Twisted <twisted0n3@gmail.com>
Subject: Re: The Modernization of Emacs: terminology buffer and keybinding
Message-Id: <1184292588.754789.265720@22g2000hsm.googlegroups.com>

On Jul 12, 7:10 pm, Miles Bader <mi...@gnu.org> wrote:
> Twisted <twisted...@gmail.com> writes:
> > I won't dignify your insulting twaddle and random ad-hominem verbiage
> > with any more responses after this one. Something with actual logical
> > argumentation to rebut may be another matter of course.
>
> Er, why don't you just answer his question (what version)?  He's asking
> for actual information, which will help us understand what you are
> (trying) to to say.
>
> If you continue to just make vague and unsupported (and rather hostile)
> assertions, without examples, version numbers, or other concrete
> information, do you expect anybody will continue listening to you?

Some people can't let sleeping dogs lie I guess.

I can't remember the specific version after all these years. It may
have been 18 or 19 point something. As for "concrete information" this
thread is littered with fairly specific anecdotes. I know, I know;
anecdotes aren't really proof of anything. Got any better suggestions?
HCI stuff is a bit slippery to try to hang a rigorous theory and
quantitative facts upon. For most people, a crappy interface isn't
something they can precisely define, but they know it when they see it
(or at least try to use it).



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

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 V11 Issue 648
**************************************


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