The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more
12345678910111213 #!/usr/bin/rubyvar foo = 42module Bar { import main::foo var baz = 2*foo}import Bar::bazassert_eq(baz, 84)say "** Test passed!"
#!/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!"