Howdy Monks. I don't often ask, but this one's got me:
Fails with: Global symbol "$c" requires explicit package name. Why doesn't this variable declaration work in this place?my $c = &func() ? say "$c found!" : say "None!";
Yet, of course:
Works just fine. Did some due diligence trying to search, but as you can imagine, this example of failure is hard to find! Thanks!my $c; $c = &func() ? say "$c found!" : say "None!";
In reply to Why so strict? by mikeh123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |