Hi guys, I am a recent Ruby convert (from PERL), and I am wondering if
is a way to get some of the behavior that I am
comfortable with with regards to scope.
In PERL the following code:
However in Ruby, I’m not sure how to get the same behavior. I tried:
which yields a different output than the PERL code. Is this type of
possible in Ruby without creating a class?