nayakgi / perl-compiler

Automatically exported from code.google.com/p/perl-compiler
Other
0 stars 0 forks source link

cannot overload "" on main class #335

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

> perlcc -r -e 'my $t = "foo:bar"; use overload q/""/ => sub { $t }; my $o = 
bless []; print "ok\n" if $o."" eq $t;'

What is the expected output?

> perl -e 'my $t = "foo:bar"; use overload q/""/ => sub { $t }; my $o = bless 
[]; print "ok\n" if $o."" eq $t;'
ok

Please use labels and text to provide additional information.

Original issue reported on code.google.com by nicolas....@gmail.com on 9 May 2014 at 10:54

GoogleCodeExporter commented 9 years ago

Original comment by todd.e.rinaldo on 9 May 2014 at 11:19

GoogleCodeExporter commented 9 years ago

Original comment by reini.urban on 11 Jun 2014 at 11:26