The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
use strict;
use warnings;
use Smart::Options::Declare;
use Test::More;

@ARGV = qw(--pi=3.14);
foo();
done_testing;


sub foo {
    opts my $pi => 'Num';
    is $pi, 3.14;
}