and'commandi2' => sub { return ($1, 'who');},
.. Voila, no closures.. (Or it works, at least, which is the main thing..)@args = $commands->{'commandi2'}->();
C.
In reply to Re: Using $1,$2 etc in closures..
by castaway
in thread Using $1,$2 etc in closures..
by castaway
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |