3 ms·
Many people (including Matz) discourage Ruby's Perlisms (or Perlish roots?), but at least for now, they're still there. (I say at least for now because Matz has
by telemachos 16y ago
Many people (including Matz) discourage Ruby's Perlisms (or Perlish roots?), but at least for now, they're still there. (I say at least for now because Matz has said that they may go away at some point.)
Check man ruby and you'll see familiar (if you're used to Perl one-liners) command-line switches: -p, -l, -n, -F, -a, -i and so on.
See also here for some familiar friends: http://www.zenspider.com/Languages/Ruby/QuickRef.html#19 http://www.zenspider.com/Languages/Ruby/QuickRef.html#19