Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Journal of jjore (6662)

Friday May 29, 2009
05:08 PM


[ #39050 ]

I'm going to be writing a lot of ruby now. :-/ I'm sad to be giving up the awesome tools available in perl. :-/


# Sigh. Automatic semicolons are a disease.
foo =\
  .select { |e| e.yah? }\
  .collect { | e| e.noooo! }\
  .select { |e| e.ok? }

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • The trailing backslashes sooo give me TCL slashbacks. Urgh. 8-P

  • Ruby will not insert semicolons if it would be syntactically incorrect to do so:

    foo =
          select { |e| e.yah? }.
          collect { | e| e.noooo! }.
          select { |e| e.ok? }

    However do tell me if you find an adequate replacement for strict.

    • If Ruby had more Smalltalk, it would be just fine.

      foo =
            select { |e| e.yah? }
            collect { | e| e.noooo! }
            select { |e| e.ok? }.