Differences between at_exit and END (upper case) in Ruby

Viewed 985

What differences, if any, exist between the Kernel#at_exit method and the END (all upper case) keyword? Is the latter merely a more Perlish way of doing things, and the former more Ruby-esque?

I tried doing defined?(END {puts "Bye"}), but got a syntax error.

2 Answers
Related