Values of @ARGV get lost with "use open ':utf8'"

6 views
Skip to first unread message

Heinz Knutzen

unread,
Aug 13, 2010, 10:21:33 AM8/13/10
to perl-c...@googlegroups.com
This test program fails with B::C.

test1.pl:
=====
use open ':encoding(utf8)';
my $x;
print "@ARGV\n";
=====

Expected output:
$ perl test1.pl a b c
a b c

With B::C, output is missing:
$ perlcc -o test1 test1.pl
$ ./test1 a b c

(nothing)

Used versions:
- perl v5.10.1 (*) built for i486-linux-gnu-thread-mult
(from Ubuntu 10.04)
- B::C version 1.27

--
Heinz Knutzen

J. Nick Koston

unread,
Aug 14, 2010, 11:46:45 AM8/14/10
to perl-c...@googlegroups.com
Does it work ok without the my $x?

Thanks

> --
> Unsubscribe via mail to perl-compile...@googlegroups.com
> Options: http://groups.google.com/group/perl-compiler?hl=en
>

Heinz Knutzen

unread,
Aug 14, 2010, 7:00:21 PM8/14/10
to perl-c...@googlegroups.com
Yes, without the my $x it works correctly.
Reply all
Reply to author
Forward
0 new messages