The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

#!/usr/bin/ruby
var foo = 42
module Bar {
import main::foo
var baz = 2*foo
}
import Bar::baz
assert_eq(baz, 84)
say "** Test passed!"