Last Updated: February 25, 2016
·
531
· orodio

The last return in irb

You can use _ to return the last result.

$ irb
> [1,2,3,4,5]
=> [1, 2, 3, 4, 5]
> p = _
=> [1, 2, 3, 4, 5]
> p    
=> [1, 2, 3, 4, 5]

fyeah