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
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
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
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
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
* 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
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
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
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
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
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
Anyone got plans for Thursday apart from the tech meet? Lunch?
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
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
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.
* [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
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
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
i have a cheapo eyestar //el one to swap or smash to bits in front of
you...
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.
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
I just want a good quality linux capable and usable Webcam...
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
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
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
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
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
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
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/
29 matches
Mail list logo