You're viewing a comment by Daniel Luz and its responses.

Daniel Luz Permalink
September 01, 2008, 04:51

Staying with ifconfig, Ruby's puts is one character longer than Perl 5.10's say, but uses the very same technique, showing the similarities between both languages:

ifconfig|ruby -ne'puts$1if/dr:(\S+)/'

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "lcd_90": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.