On 10/24/2012 02:46 PM, Marc Chantreux wrote:

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

get / (.*) '/' / => sub ($path) {

$path is a subroutine parameter, and thus read-only by default.
If you want to modify $path locally, write

sub ($path is copy) { ... }

Also if Bailador passes Match objects instead of strings into the function, $path evaluates to True in boolean context even if it matched the empty string.


Reply via email to