Guest User

Untitled

a guest
Apr 2nd, 2015
398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. Bailador:
  2.  
  3. get '/env' => sub {
  4. my @list = map { $_ ~ ":" ~ request.env<$_> }, request.env.keys;
  5. @list.join("<br>");
  6. }
  7.  
  8. Result:
  9. ....
  10. use of uninitialized value %!env of type Any in string context in sub at app.pl6:20
  11.  
  12. use of uninitialized value %!env of type Any in string context in sub at app.pl6:20
  13.  
  14. use of uninitialized value %!env of type Any in string context in sub at app.pl6:20
  15. ...
  16.  
  17. --------------------------------------
  18.  
  19. request.env.pairs.join(" ");
  20.  
  21. Result:
  22.  
  23. Cannot use a Buf as a string, but you called the Stringy method on it
Advertisement
Add Comment
Please, Sign In to add comment