From: Michael Neumann Date: 2001-12-21T02:26:53+09:00 Subject: [ruby-talk:29148] Re: What's the Ruby way of doing: Phil Tomson wrote: > In article <3c20319c$0$23431$afc38c87@news.optusnet.com.au>, > Nightblade wrote: > > > >I'm new to Ruby, so please don't shout. :-) I used to really like doing > >these kind of things in Perl: (example in metacode) > > BTW: this will work in Ruby, just as you have it here: > > > > $debug and print "some kind of message" > > > >and: > > > > This one won't work( but see my previous reply for an alternative): > > unless $quiet print "extra info here" either unless $quiet then print "extra info here" end or print "extra info here" unless $quite -- Michael Neumann merlin.zwo InfoDesign GmbH http://www.merlin-zwo.de