# Simple Ruby program
puts "Welcome to GeeksforGeeks!"
输出:
Welcome to GeeksforGeeks!
【Perl 和 Ruby 的区别:
|
Perl
|
Ruby
|
| --- | --- |
| Perl 是一种高级、通用、可解释、动态的编程语言。 | Ruby is a dynamic, object-oriented and reflective universal programming language. |
| It is a less object-oriented language. | It is a pure and highly object-oriented language. |
| There are fewer libraries in Perl than in Ruby. | Compared with Perl, there are more libraries in Ruby. |
| Its support for Unicode is much stronger than Ruby's. | Its support for Unicode is not as strong as Perl. |
| The file extension for Perl is . pl" **。** | Ruby uses the file extension **. rb”。** |
| 说到支持正则表达式的它有非常多的库。 | Compared with Perl, it has less support for regular expressions. |
| Perl 语言的框架是催化剂. | 红宝石的框架是 Rails 上的 Ruby . |
| Support multiple variable types. | It has only one variable type. |
| Perl is very fast in execution. | Ruby's script execution speed is decent enough. |
| Perl 最常用于 CGI(Common Gateway Interface)脚本中,与 C 一起用于 web 服务器,因此在服务器技术领域被广泛使用。 | Ruby is very strong in meta-programming, which allows the creation of a mythical product, such as a vagrant. |