hello perl6 people,

this code says "foo", exactly as expected. 

    use v6;
    my $path = "";
    $path ||="foo";
    say $path;

I'm trying to use the same thinh in a get callback of Baildador and it doesn't
work. i try to understand why is it so.

use v6;
use lib 'lib';
use Bailador;

get / (.*) '/' / => sub ($path) {
    $path||="foo";
    "hello ($path)  ({$path.WHAT};{$path.defined}) {so $path}";
    # > curl localhost:3000
    # hello ()  (;True) True
}
baile;

please help! 
regards
marc 

Reply via email to