From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more
123456789101112131415 use Test::Simple tests => 2;use strict;use warnings;use Inline Config => DIRECTORY => './blib_test';use Inline Python => <<'END';def debug(x): return str(x)ENDmy @a = ('foo' , 'bar', 'baz');delete $a[1];ok(debug(undef) eq 'None');ok(debug(\@a) eq "['foo', None, 'baz']");
use
Test::Simple
tests
=> 2;
strict;
warnings;
Inline
Config
=>
DIRECTORY
'./blib_test'
;
Python
<<'END';
def debug(x):
return str(x)
END
my
@a
= (
'foo'
,
'bar'
'baz'
);
delete
$a
[1];
ok(debug(
undef
) eq
'None'
ok(debug(\
"['foo', None, 'baz']"