Re: Erm, Hello?

2002-01-21 Thread Piers Cawley
Dominic Mitchell [EMAIL PROTECTED] writes: Piers Cawley [EMAIL PROTECTED] writes: You're still wrong in the oneline case: if ($foo) { do_foo_stuff() } else { do_other_stuff() } Are you sure it isn't: $foo ? do_foo_stuff() : do_other_stuff(); What? The ternary operator in a

Re: Erm, Hello?

2002-01-21 Thread Piers Cawley
David Cantrell [EMAIL PROTECTED] writes: On Sun, Jan 20, 2002 at 04:23:46PM +, Greg McCarroll wrote: * Dominic Mitchell ([EMAIL PROTECTED]) wrote: $foo ? do_foo_stuff() : do_other_stuff(); Ok, this started off as a bit of a joke/troll, however i'm about to take my own bait

Re: Erm, Hello?

2002-01-21 Thread Nick Cleaton
On Mon, Jan 21, 2002 at 09:00:56AM +, Piers Cawley wrote: I've seen it used as a 'switch' type operator: $cond1 ? action1() : $cond2 ? action2() : $cond3 ? action3() : ... $condN ? actionN(); and I'm still not sure whether I utterly hate it or not... $cond1

[OT] Exam Question

2002-01-21 Thread Ivor Williams
Thought this might amuse the Perl mongers. :- I. Subject: EXAM QUESTION The following is an actual question given on a University of Washington engineering mid term exam.The answer was so profound that the Professor shared it with colleagues, which is why we now have the pleasure of enjoying it

Re: Erm, Hello?

2002-01-21 Thread Jonathan Peterson
what? .. with *4* spaces ?? come come mr McCarroll, we all know it is 2 spaces ... :) Spaces? SPACES?!!! It's called a tab, Tee Ay Bee. Code is indented with TABs, not spaces. Only bad bad people use spaces to indent. -- Jonathan Peterson Technical Manager, Unified Ltd, +44 (0)20 7383

Re: [OT] Exam Question

2002-01-21 Thread Struan Donald
* at 21/01 11:00 - Ivor Williams said: Thought this might amuse the Perl mongers. :- I. Subject: EXAM QUESTION http://www.snopes2.com/college/exam/hell.htm would seem to throw doubt on the veracity of this tale s

RE: Erm, Hello?

2002-01-21 Thread Ivor Williams
Jonathan Peterson [mailto:[EMAIL PROTECTED]] wrote what? .. with *4* spaces ?? come come mr McCarroll, we all know it is 2 spaces ... :) Spaces? SPACES?!!! It's called a tab, Tee Ay Bee. Code is indented with TABs, not spaces. Only bad bad people use spaces to indent. ... or bad

Re: Erm, Hello?

2002-01-21 Thread Tony Kennick
On Sun, 20 Jan 2002 16:41:10 + David Cantrell [EMAIL PROTECTED] wrote: On Sun, Jan 20, 2002 at 04:23:46PM +, Greg McCarroll wrote: * Dominic Mitchell ([EMAIL PROTECTED]) wrote: $foo ? do_foo_stuff() : do_other_stuff(); Ok, this started off as a bit of a

Re: Erm, Hello?

2002-01-21 Thread Tony Kennick
On Sun, 20 Jan 2002 16:41:10 + David Cantrell [EMAIL PROTECTED] wrote: On Sun, Jan 20, 2002 at 04:23:46PM +, Greg McCarroll wrote: * Dominic Mitchell ([EMAIL PROTECTED]) wrote: $foo ? do_foo_stuff() : do_other_stuff(); Ok, this started off as a bit of a

Re: Erm, Hello?

2002-01-21 Thread Dominic Mitchell
Jonathan Stowe [EMAIL PROTECTED] writes: I have this problem with Term::Cap that the diffs always report stuff being different between my (i.e. the CPAN version ) and the core version - this is always todo with weird white space handling :( I always use diff -b to ignore such things as me

Re: Erm, Hello?

2002-01-21 Thread Piers Cawley
Ivor Williams [EMAIL PROTECTED] writes: Jonathan Peterson [mailto:[EMAIL PROTECTED]] wrote what? .. with *4* spaces ?? come come mr McCarroll, we all know it is 2 spaces ... :) Spaces? SPACES?!!! It's called a tab, Tee Ay Bee. Code is indented with TABs, not spaces. Only bad bad

Thursday?

2002-01-21 Thread Dave Hodgkinson
Anyone got plans for Thursday apart from the tech meet? Lunch?

Pub

2002-01-21 Thread Dave Cross
Adam Turoff is in town and a few of us are meeting him for a drink or three this evening. We'll be in the Founder's Arms from 6:30pm. Feel free to join us. Dave... -- Drugs are just bad m'kay

RE: Erm, Hello?

2002-01-21 Thread Richard Clyne
So what is the difference between these sort of constructs and action1() if $cond1 ; action2() if $cond2 ; action3() if $cond3 ; I know which I'd like to read in code I am trying to understand! Richard -Original Message- From: Piers Cawley [SMTP:[EMAIL PROTECTED]] Sent: 21 January

Re: Erm, Hello?

2002-01-21 Thread Randal L. Schwartz
Nick == Nick Cleaton [EMAIL PROTECTED] writes: Nick On Mon, Jan 21, 2002 at 09:00:56AM +, Piers Cawley wrote: $cond1 action1() || $cond2 action2() || ... works just as 'well'... Nick Until the day that $cond1 is true and action1() returns '0', Nick when it breaks mysteriously.

Re: Pub

2002-01-21 Thread Greg McCarroll
* [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: On Mon, Jan 21, 2002 at 01:39:01PM +, Dave Cross wrote: Adam Turoff is in town and a few of us are meeting him for a drink or three this evening. We'll be in the Founder's Arms from 6:30pm. Feel free to join us. You forgot to tell us

Re: Pub

2002-01-21 Thread Leon Brocard
Dave Cross sent the following bits through the ether: Adam Turoff is in town and a few of us are meeting him for a drink or three this evening. Who he? *Oh*, you mean Ziggy: http://astray.com/photos/?show=dcp_0210.jpg ;-), Leon -- Leon

Re: Erm, Hello?

2002-01-21 Thread Chris Devers
On 21 Jan 2002, Randal L. Schwartz wrote: Piers == Piers Cawley [EMAIL PROTECTED] writes: Piers But, but, that should be Piers $foo do_foo_stuff() || do_other_stuff(); And just to make sure my objections are noted in every thread you say this: DON'T DO THAT. Any

wanted - pants linux-capable webcam

2002-01-21 Thread Dave Hodgkinson
i have a cheapo eyestar //el one to swap or smash to bits in front of you...

Re: Erm, Hello?

2002-01-21 Thread Randal L. Schwartz
Piers == Piers Cawley [EMAIL PROTECTED] writes: Piers But, but, that should be Piers $foo do_foo_stuff() || do_other_stuff(); And just to make sure my objections are noted in every thread you say this: DON'T DO THAT. Any more than you'd use JAPH or Golf code in production.

Re: Who invented Emacs?

2002-01-21 Thread Randal L. Schwartz
Jonathan == Jonathan Peterson [EMAIL PROTECTED] writes: Jonathan Hmmm, so Gosling re-wrote emacs in C, ported it to Unix, and then Jonathan watched while Stallman removed all his code for copyright reasons. lol. Jonathan Still, claiming to have done the original Unix Emacs editor Jonathan

Re: wanted - pants linux-capable webcam

2002-01-21 Thread Charlie
I just want a good quality linux capable and usable Webcam...

Re: wanted - pants linux-capable webcam

2002-01-21 Thread nemesis
Charlie wrote: I just want a good quality linux capable and usable Webcam... Someone on the gllug list mentioned Dexxa webcams (you can search tge archives, gllug.linux.co.uk) a while ago. They were dirt cheap at the time and they worked. Will. -- *claw claw* *fang* *shred* *rip* *ad

Re: Website, was RE: Of meetings technical and social

2002-01-21 Thread Leo Lapworth
On Fri, Jan 18, 2002 at 07:24:08PM +, Paul Mison wrote: On Fri, Jan 18, 2002 at 05:14:58PM +, Leon Brocard wrote: Mark Fowler sent the following bits through the ether: (er, in other words do you want a hand with anything) Leo is on holiday. I think our glorious leader Paul

call level oddness

2002-01-21 Thread Richard Clamp
In doing some hacking[0] with Hook::LexWrap and caller, doing dodgy things to try and find the true coderef of the code that's calling me, so I can do even more dodgy things to its pad, and I've hit a stumbling block. Hook::LexWrap turns something like this: sub foo { print Hi kids, I'm

Re: call level oddness

2002-01-21 Thread Robin Houston
Do you want to find the coderef of foo from _within_ a pre or post handler? If so, I imagine that's more or less equivalent to finding a coderef for 'bar' from within 'foo', given sub xxx { foo(); bar(); baz(); } It can certainly be done using Want-like techniques, but it'll make

Re: Erm, Hello?

2002-01-21 Thread Paul Makepeace
On Mon, Jan 21, 2002 at 09:23:44AM +, Nick Cleaton wrote: On Mon, Jan 21, 2002 at 09:00:56AM +, Piers Cawley wrote: and I'm still not sure whether I utterly hate it or not... $cond1 action1() || $cond2 action2() || ... works just as 'well'... Until the day

Re: call level oddness

2002-01-21 Thread Richard Clamp
On Mon, Jan 21, 2002 at 08:12:42PM +, Robin Houston wrote: Do you want to find the coderef of foo from _within_ a pre or post handler? No, within foo (or something foo may happen to implictly call) I'm crazy but not that crazy. I found a solution as I stepped off the train - and then I

Re: Erm, Hello?

2002-01-21 Thread Nick Cleaton
On Mon, Jan 21, 2002 at 12:45:16PM -0800, Paul Makepeace wrote: Until the day that $cond1 is true and action1() returns '0', when it breaks mysteriously. Then you won't like, No, not a lot :) #!/usr/bin/perl -wln next unless /^[^#]*VirtualHost/../^[^#]*\/VirtualHost/