Sponsoring The Perl Toolchain Summit 2025: Help make this important event another success Learn more

#!/usr/bin/ruby
#
#
func swap(Ref a, Ref b) {
(*b, *a) = (*a, *b);
}
var (x, y) = (1, 2);
swap(\x, \y);
say x;
say y;