Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sub fromDB(Int $id) returns Story is export {
- say $selectstory_req.execute($id);
- say $selectstory_req.can('column_names');
- my $hashref = $selectstory_req.fetchrow_hashref();
- say $hashref.elems;
- for $hashref.kv -> $key, $value {
- say $key;
- say $value.WHAT ~ ": $value"; # (line 78)
- }
- my %hash = %($hashref);
- say %hash.perl; # line 81
- my Story $story = Story.new(|@($hashref));
- say $story.perl;
- return $story;
- }
- Use of uninitialized value of type str in string context in block at /root/piko/StoryFactory.pm6:78
- : 181476
- rating
- Use of uninitialized value of type str in string context in block at /root/piko/StoryFactory.pm6:78
- : T
- url
- Use of uninitialized value of type str in string context in block at /root/piko/StoryFactory.pm6:78
- : http://www.fimfiction.net/story/230097/crystals-wishes
- This representation (P6str) does not support attribute storage
- in sub fromDB at /root/piko/StoryFactory.pm6:81
- in block <unit> at getstory.p6:6
Advertisement
Add Comment
Please, Sign In to add comment