Re: Inline::PERL

2001-06-08 Thread Philip Newton

Jonathan Peterson wrote:
 Oh, and I think the thing about readdir returning the first 
 entry of an array in scalar context is dumb. That isn't DWIM.
 Returning the number of entries in the directory would be
 about a million times more sensible (especially if it didn't
 count . and .. as entries).

Next you'll be saying that  in scalar context should return the number of
lines in the file.

Cheers,
Phi while($file = readdir BLA) { process($file) } lip
-- 
Philip Newton [EMAIL PROTECTED]
All opinions are my own, not my employer's.
If you're not part of the solution, you're part of the precipitate.



Re: Inline::PERL

2001-06-03 Thread Marcel Grunauer

On Sunday, June 3, 2001, at 05:56  AM, David H. Adler wrote:

 On Fri, Jun 01, 2001 at 09:40:49AM +0100, Cross David - dcross wrote:

 Inline::PERL gives you the power of the PERL programming language from

 And what, exactly, is the PERL programming language?

It is the wicked, twisted spectre of Perl that haunts the minds of
script kiddies. In some cultures it is known as CGI; other cultures
have no name for it. Well-informed people normally run when they
encounter it.

A saving throw against mental instability applies.

Marcel

--
$ perl -we time
Useless use of time in void context at -e line 1.



Re: Inline::PERL

2001-06-03 Thread Greg McCarroll

* Marcel Grunauer ([EMAIL PROTECTED]) wrote:
 On Sunday, June 3, 2001, at 05:56  AM, David H. Adler wrote:
 
  On Fri, Jun 01, 2001 at 09:40:49AM +0100, Cross David - dcross wrote:
 
  Inline::PERL gives you the power of the PERL programming language from
 
  And what, exactly, is the PERL programming language?
 
 It is the wicked, twisted spectre of Perl that haunts the minds of
 script kiddies. In some cultures it is known as CGI; other cultures
 have no name for it. Well-informed people normally run when they
 encounter it.
 
 A saving throw against mental instability applies.
 

Most of characters are excused these sorts of saving throws as they
are too twisted/evil to get freaked by whatever demanding the ST.

-- 
Greg McCarrollhttp://217.34.97.146/~gem/



Re: Inline::PERL

2001-06-03 Thread Merijn Broeren

Quoting Marcel Grunauer ([EMAIL PROTECTED]):
 On Sunday, June 3, 2001, at 05:56  AM, David H. Adler wrote:
 
  On Fri, Jun 01, 2001 at 09:40:49AM +0100, Cross David - dcross wrote:
 
  Inline::PERL gives you the power of the PERL programming language from
 
  And what, exactly, is the PERL programming language?
 
 It is the wicked, twisted spectre of Perl that haunts the minds of
 script kiddies. In some cultures it is known as CGI; other cultures
 have no name for it. Well-informed people normally run when they
 encounter it.
 
Ah, but you are wrong, most of these tribes *do* have a name for this, 
they call this powerful incantation PEARL!

Sadly, I can still remember all the headhunters looking for people 
that knew that particular language. As you say, a good indication to run
far and fast.

Cheers,
-- 
Merijn Broeren   | Fact: GPRS does not work if the Mobile Station (your phone,
Software Geek| that is) moves faster than 500 km/h. Tip: NEVER drive faster
   than 450 km/h if you are wapping while driving! 



Re: Inline::PERL

2001-06-02 Thread David H. Adler

On Fri, Jun 01, 2001 at 09:40:49AM +0100, Cross David - dcross wrote:
 
 Inline::PERL gives you the power of the PERL programming language from

And what, exactly, is the PERL programming language?

dha

-- 
David H. Adler - [EMAIL PROTECTED] - http://www.panix.com/~dha/
Sometimes these hairstyles are exaggerated beyond the laws of physics
  - Unknown narrator speaking about Anime



Inline::PERL

2001-06-01 Thread Cross David - dcross


Another gem from Perlmonks. I'm thinking I should post this one to the
Cookwood board :)

http://perlmonks.org/index.pl?node_id=84638

From the POD:

=head1 DESCRIPTION

Inline::PERL gives you the power of the PERL programming language from
within your Perl programs. This gives you instant access to hundreds
of pre-coded applications such as bulletin boards, hit counters and
shopping carts.

PERL is a programming language for writing CGI applications. It's main
strength is that it doesn't have any unnecessary warnings or
strictures. It is a direct descendent of Perl, a programming language
which was used mainly by programmers. However, the original language
required too much reading and thinking and so PERL was developed as a
language which was more in tune with the requirements of the Internet
age.


=head1 PERL DOCUMENTATION

Unfortunately there is no documentation for PERL (believe me I've
looked everywhere). Therefore, the best thing to do is to go straight
to comp.lang.perl.misc and ask your questions there.


-- 
 


The information contained in this communication is
confidential, is intended only for the use of the recipient
named above, and may be legally privileged. If the reader 
of this message is not the intended recipient, you are
hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  
If you have received this communication in error, please 
re-send this communication to the sender and delete the 
original message or any copy of it from your computer
system.



Re: Inline::PERL

2001-06-01 Thread Jonathan Peterson

At 09:40 01/06/01 +0100, you wrote:

Another gem from Perlmonks. I'm thinking I should post this one to the
Cookwood board :)

It was in the unforgettable episode on 23rd May when bk said:

Yay! You have now totally redeemed yourself in my mind. I'm sorry... I 
seem to have missed the class on the usage of the different kinds of OR 
operators.

Since then Bk and Dave's relationship has got better and better, with 
smiley faces common place and good humour generally prevalent. But does Bk 
harbour underlying resentment? Is he luring Dave into a false sense of 
security? Has his programming actually improved any?

It's better than enders!

Oh, and I think the thing about readdir returning the first entry of an 
array in scalar context is dumb. That isn't DWIM. Returning the number of 
entries in the directory would be about a million times more sensible 
(especially if it didn't count . and .. as entries).


-- 
Jonathan Peterson
Technical Manager, Unified Ltd, 020 7383 6092
[EMAIL PROTECTED]