#!perl -T
my
@list
=
qw/foo bar baz/
;
my
$expected
=
join
q{ }
,
@list
;
# multi-line - only possible at this point as long as -parse not set
is_deeply [ qwuc{
foo
bar
baz}], \
@list
,
'advanced qw multi-line test'
;
# qw like this would fail without -parser set
-emulate
=>
'qw'
,
-with
=>
sub
(@) {
join
q{ }
,
@_
},
-parser
=> 1
};
is qwS/foo bar baz/,
$expected
,
'advanced qw parser test'
;
# TBD - test import() is working correctly. Test nothing added to symbol table after a use P::QO ();