Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Alternatives to sed + awk
- Date: Thu, 3 Mar 2011 10:19:07 +0100
- From: Josh Glover <jmglov@example.com>
- Subject: Re: [tlug] Alternatives to sed + awk
- References: <AANLkTim_-D9CFYC8TNp33ni85zB+QBA7jV=BpLN=4SbZ@example.com> <4D6EF812.2090206@example.com> <87sjv492xl.fsf@example.com> <4D6F48E4.5090505@example.com> <AANLkTim1ZCqhQDKrN-=NO+FuGXEsXgacMe6=jhMk1PS9@example.com> <52168.61.213.3.170.1299141416.squirrel@example.com>
2011/3/3 Nikolay Elenkov <nick@example.com>: > You can have as many curly braces [in Ruby] as you want: > > if foo: #{ > print "foo" > #} > else: #{ > print "bar" > #} *plonk* You can have semiconlons too, if you must: if foo: #{ :noop; print "foo" #} else: #{ :noop; print "bar" #} bar = 123; bar += 456 unless bar.blank?; puts bar; :noop -- Cheers, Josh
- Follow-Ups:
- Re: [tlug] Alternatives to sed + awk
- From: Nikolay Elenkov
- References:
- [tlug] Alternatives to sed + awk
- From: Nguyen Vu Hung
- Re: [tlug] Alternatives to sed + awk
- From: Raymond Wan
- Re: [tlug] Alternatives to sed + awk
- From: Stephen J. Turnbull
- Re: [tlug] Alternatives to sed + awk
- From: Raymond Wan
- Re: [tlug] Alternatives to sed + awk
- From: Josh Glover
- Re: [tlug] Alternatives to sed + awk
- From: Nikolay Elenkov
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Alternatives to sed + awk
- Next by Date: Re: [tlug] Alternatives to sed + awk
- Previous by thread: Re: [tlug] Alternatives to sed + awk
- Next by thread: Re: [tlug] Alternatives to sed + awk
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links