|Subject:||open () error message is LTA|
|Date:||Fri, 13 Jul 2012 14:00:04 +0200|
|To:||rakudobug [...] perl.org|
|From:||Paweł Pabian <pawel.pabian [...] implix.com>|
I've made this stupid mistake and was unable to find bug (space between bracket and open) due to misleading error message.
$ perl6 -e 'my $f = open ("logo_32x32.png", :bin); say $f.read(1e5).bytes; $f.close;'
This type cannot unbox to a native string
moritz @ 1:54
still the error is LTA
it should eithe constrain the type to Str, or should coerce to it
tadzik @ 1:55
the first thing we ever put into Perl::Critic is checking for things like this
subcall (foo); "please write me as subcall((foo)) to not confuse everybody"