As you learned in the last episode in this series, Ruby's "Perl-style" special variables are purpose-built for use in one-off command-line invocations of Ruby. Some of the most common uses for Ruby at the command line involve regular expression matching, and in this episode you'll see how Ruby's regex-specific variables can come in handy. After which, you'll learn some guidelines for when, and when not, to use these concise-but-cryptic variables.
This page is just for members. Sign in or subscribe to gain access!